Commits

Aleš Erjavec committed af51b87

Fixed a typo, fixed usestat selection.

Comments (0)

Files changed (1)

_multitarget/widgets/OWTestMultitargetLearners.py

            Orange.multitarget.scoring.mt_global_accuracy, True),
           ("Mean Accuracy", "Mean Accuracy",
            Orange.multitarget.scoring.mt_mean_accuracy, True),
-          ("Average Information Score", "Inf. Score (average)", avg_is, True),
-          ("Flattened Information Score", "Inf. Score (flattened)", flat_bs, False),
+          ("Average Information Score", "Inf. Score (average)",
+           avg_is, True),
+          ("Flattened Information Score", "Inf. Score (flattened)",
+           flat_bs, False),
           ("Average Brier Score", "Brier (average)", avg_bs, True),
           ("Flattened Brier Score", "Brier (flattened)", flat_bs, False),
           ("F1 macro", "F1 macro",
             self.error(0, "Multitarget data expected.")
 
         if data is None:
+            self.data = None
             self.clearScores()
             self.send("Evaluation Results", None)
             return
                     learners.append(learner)
                     used_ids.append(learner_id)
                 else:
-                    self.learenrs[learner_id].scores = []
+                    self.learners[learner_id].scores = []
                     self.learners[learner_id].results = None
 
             except Exception, ex:
         self.sendResults()
 
     def get_usestat(self):
-        stats = [self.cStatistics, self.rStatistics]
+        stats = [self.selectedCScores, self.selectedRScores]
         if self.data is None:
             return stats[self.statLayout.currentIndex()]
         if is_multitarget_continuous(self.data.domain):
             res += "</table>"
             self.reportRaw(res)
 
+
 if __name__ == "__main__":
     a = QApplication(sys.argv[1:])
     ow = OWTestMultitargetLearners()