Changeset 9416:0e72e57bf87b in orange


Ignore:
Timestamp:
12/26/11 16:29:14 (2 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
5ec571a3ce4cdb71c3e04c12ee73806e9a5f7314
Message:

Removed a workaround for a bug that was fixed (#1012).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/multitarget/tree.py

    r9414 r9416  
    4141            dom2 = Orange.data.Domain([bf], class_vars=data.domain.class_vars) 
    4242            data2 = Orange.data.Table(dom2, data) 
    43             # TODO: remove when bug is fixed (currently => very slow) 
    44             for i1, i2 in zip(data, data2): 
    45                 i2.set_classes(i1.get_classes()) 
    4643            scores.append((t, self.__call__(bf, data2))) 
    4744        return scores 
     
    8380                data.domain.attributes, data.domain.class_vars[0], 
    8481                class_vars=data.domain.class_vars), data) 
    85         # until the bug is fixed, manually set correct values of classes 
    86         for i1, i2 in zip(data, data2): 
    87             i2.set_classes(i1.get_classes()) 
    8882        tree = Orange.classification.tree.TreeLearner.__call__(self, data2, weight) 
    8983        return MultiTree(base_classifier=tree) 
Note: See TracChangeset for help on using the changeset viewer.