Changeset 9473:6e6b60e8d07d in orange


Ignore:
Timestamp:
08/07/11 13:28:38 (3 years ago)
Author:
wencanluo <wencanluo@…>
Branch:
default
Convert:
3a64986e6c4362a4f13277f9d79a574253e3c486
Message:

Add Widgets for ML-kNN method and BR-kNN method

Location:
orange
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/evaluation/testing.py

    r9469 r9473  
    541541    #if classVar.varType == Orange.data.Type.Discrete: 
    542542    #    values = list(classVar.values) 
    543     #    baseValue = classVar.baseValue 
     543    #    base_value = classVar.base_value 
    544544    #else: 
    545     #    baseValue = values = None 
     545    #    base_value = values = None 
    546546    test_results = ExperimentResults(times, [l.name for l in learners], values, weight!=0, base_value) 
    547547 
     
    10321032            if testset.domain.classVar.varType == Orange.data.Type.Discrete: 
    10331033                values = classVar.values.native() 
    1034                 baseValue = classVar.baseValue 
     1034                base_value = classVar.baseValue 
    10351035            else: 
    10361036                values = None 
    1037                 baseValue = -1 
     1037                base_value = -1 
    10381038        else: 
    10391039             values = label.get_label_names(testset) 
    10401040             base_value = None 
    10411041        test_results=ExperimentResults(1, [l.name for l in classifiers], values, 
    1042                                        testweight!=0, baseValue) 
     1042                                       testweight!=0, base_value) 
    10431043 
    10441044    examples = getattr(test_results, "examples", False) 
  • orange/OrangeWidgets/Multilabel/OWBR.py

    r9453 r9473  
    11""" 
    22<name>Binary Relevance</name> 
    3 <description>Binary Relevance learner/multilabel.</description> 
     3<description>Binary Relevance Learner/multilabel.</description> 
    44<icon>icons/Unknown.png</icon> 
    55<contact>Wencan Luo (wencanluo.cn(@at@)gmail.com)</contact> 
  • orange/OrangeWidgets/Multilabel/OWLP.py

    r9471 r9473  
    11""" 
    22<name>Label Powerset</name> 
    3 <description>LabelPowerset learner/multilabel.</description> 
     3<description>LabelPowerset Learner/multilabel.</description> 
    44<icon>icons/Unknown.png</icon> 
    55<contact>Wencan Luo (wencanluo.cn(@at@)gmail.com)</contact> 
Note: See TracChangeset for help on using the changeset viewer.