Source

orange-multitarget / orangecontrib / multitarget / widgets / OWTestMultitargetLearners.py

Diff from to

orangecontrib/multitarget/widgets/OWTestMultitargetLearners.py

 """
 <icon>icons/TestMTLearners.png</icon>
 <name>Test Multitarget Learners</name>
-</description>A widget for scoring the performance of learning algorithms
+<description>A widget for scoring the performance of learning algorithms
 on multitarget domains</description>
 <category>Multitarget</category>
 <priority>2000</priority>
 from OWTestLearners import OWTestLearners, Score, Learner
 
 
+NAME = "Test Multitarget Learners"
+DESCRIPTION = """
+A widget for scoring the performance of learning algorithms on
+multi-target domains.
+"""
+CATEGORTY = "Multitarget"
+PRIORITY = 2000
+ICON = "icons/TestMTLearners.png"
+
+INPUTS = [("Data", Orange.data.Table, "setData", Default),
+          ("Separate Test Data", Orange.data.Table, "setTestData"),
+          ("Learner", Orange.core.Learner, "setLearner", Default + Multiple),
+          ("Preprocess", PreprocessedLearner, "setPreprocessor")]
+
+OUTPUTS = [("Evaluation Results", Orange.evaluation.testing.ExperimentResults)]
+
+REPLACES = ["_multitarget.widgets.OWTestMultitargetLearners.OWTestMultitargetLearners"]
+
+
 def avg_logloss(res):
     return Orange.multitarget.scoring.mt_average_score(
                 res, Orange.evaluation.scoring.logloss)