Changeset 5065:56b01bdd1965 in orange


Ignore:
Timestamp:
08/04/08 20:22:55 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
9b7b508611595ad802e340431625593820158668
Message:
  • added one-against-all binarization
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngTree.py

    r4795 r5065  
    4848            learner.split = orange.TreeSplitConstructor_Combined() 
    4949            learner.split.continuousSplitConstructor = orange.TreeSplitConstructor_Threshold() 
    50             if getattr(self, "binarization", 0): 
     50            binarization = getattr(self, "binarization", 0) 
     51            if binarization == 1: 
    5152                learner.split.discreteSplitConstructor = orange.TreeSplitConstructor_ExhaustiveBinary() 
     53            elif binarization == 2: 
     54                learner.split.discreteSplitConstructor = orange.TreeSplitConstructor_OneAgainstOthers() 
    5255            else: 
    5356                learner.split.discreteSplitConstructor = orange.TreeSplitConstructor_Attribute() 
Note: See TracChangeset for help on using the changeset viewer.