Ignore:
Timestamp:
03/23/12 20:20:57 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Changed obsolete names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/regression/tests/test_auc.py

    r10175 r10633  
    1010        prob = [random.random() for _ in data.domain.class_var.values] 
    1111        sprob = sum(prob) 
    12         prob = [i/sprob for i in prob] 
     12        prob = [i / sprob for i in prob] 
    1313        distribution.Discrete(prob) 
    1414        return data.domain.class_var[0], prob 
     
    3838measures = ( 
    3939    (lambda x:auc(x), "AUC"), 
    40     (lambda x:auc(x, method=0), "AUC+M0"), 
    41     (lambda x:auc(x, method=1), "AUC+M1"), 
    42     (lambda x:auc(x, method=2), "AUC+M2"), 
    43     (lambda x:auc(x, method=3), "AUC+M3"), 
     40    (lambda x:auc(x, multiclass=0), "AUC+M0"), 
     41    (lambda x:auc(x, multiclass=1), "AUC+M1"), 
     42    (lambda x:auc(x, multiclass=2), "AUC+M2"), 
     43    (lambda x:auc(x, multiclass=3), "AUC+M3"), 
    4444) 
    4545 
    4646tests = ( 
    47     (lambda l, ds: testing.cross_validation([l],ds), "CV"), 
     47    (lambda l, ds: testing.cross_validation([l], ds), "CV"), 
    4848    (lambda l, ds: testing.proportion_test([l], ds, .7, 1), "Proportion test"), 
    4949) 
Note: See TracChangeset for help on using the changeset viewer.