Changeset 11725:983a29afcb85 in orange


Ignore:
Timestamp:
10/08/13 14:05:04 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed use of deprecated attribute names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/scoring.py

    r11678 r11725  
    104104    """ 
    105105    split_res = [] 
    106     for i in range(len(res.classifierNames)): 
    107         r = Orange.evaluation.testing.ExperimentResults(res.numberOfIterations, 
    108                     [res.classifierNames[i]], res.classValues, 
     106    for i in range(len(res.classifier_names)): 
     107        r = Orange.evaluation.testing.ExperimentResults( 
     108                    res.number_of_iterations, 
     109                    [res.classifier_names[i]], res.class_values, 
    109110                    weights=res.weights, base_class=res.base_class, 
    110111                    classifiers=[res.classifiers[i]] if res.classifiers else [], 
     
    113114        for te in res.results: 
    114115            r.results.append(Orange.evaluation.testing.TestedExample( 
    115                 te.iterationNumber, te.actualClass, n=1, weight=te.weight)) 
     116                te.iteration_number, te.actual_class, n=1, weight=te.weight)) 
    116117            r.results[-1].classes = [te.classes[i]] 
    117118            r.results[-1].probabilities = [te.probabilities[i]] 
Note: See TracChangeset for help on using the changeset viewer.