Commits

Miran Levar committed 4e491b8

Fixed a bug with domains in chain.py

  • Participants
  • Parent commits 3c0e5e3

Comments (0)

Files changed (1)

File _multitarget/chain.py

             # save domains for classification
             domains[i] = Orange.data.Domain([d for d in instances.domain])
 
-            classifiers[i] = learner(instances, weight)
+            #overide lingering class_vars
+            data = Orange.data.Table(domains[i], instances)
+
+            classifiers[i] = learner(data, weight)
             
             # updates domain to include class_var in features
             instances.change_domain(Orange.data.Domain(instances.domain, False, \