Changeset 10633:fb05a6f3a235 in orange for Orange/testing/regression/tests/test_auc.py
 Timestamp:
 03/23/12 20:20:57 (2 years ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/testing/regression/tests/test_auc.py
r10175 r10633 10 10 prob = [random.random() for _ in data.domain.class_var.values] 11 11 sprob = sum(prob) 12 prob = [i /sprob for i in prob]12 prob = [i / sprob for i in prob] 13 13 distribution.Discrete(prob) 14 14 return data.domain.class_var[0], prob … … 38 38 measures = ( 39 39 (lambda x:auc(x), "AUC"), 40 (lambda x:auc(x, m ethod=0), "AUC+M0"),41 (lambda x:auc(x, m ethod=1), "AUC+M1"),42 (lambda x:auc(x, m ethod=2), "AUC+M2"),43 (lambda x:auc(x, m ethod=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"), 44 44 ) 45 45 46 46 tests = ( 47 (lambda l, ds: testing.cross_validation([l], ds), "CV"),47 (lambda l, ds: testing.cross_validation([l], ds), "CV"), 48 48 (lambda l, ds: testing.proportion_test([l], ds, .7, 1), "Proportion test"), 49 49 )
Note: See TracChangeset
for help on using the changeset viewer.