Ignore:
Timestamp:
02/06/12 20:01:02 (2 years ago)
Author:
lanumek
Branch:
default
Children:
9835:e48466fc6eb2, 9841:05a160804431
rebase_source:
8cf30121654f25c9cb6d8ac9bdaf163e305d62da
Message:

Changed names of data sets (table replaced with data or name of the data set).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/scoring-info-iris.py

    r9372 r9823  
    66 
    77import Orange 
    8 table = Orange.data.Table("iris") 
     8iris = Orange.data.Table("iris") 
    99 
    10 d1 = Orange.feature.discretization.EntropyDiscretization("petal length", table) 
    11 print Orange.feature.scoring.InfoGain(d1, table) 
     10d1 = Orange.feature.discretization.EntropyDiscretization("petal length", iris) 
     11print Orange.feature.scoring.InfoGain(d1, iris) 
    1212 
    13 table = Orange.data.Table("iris") 
     13iris = Orange.data.Table("iris") 
    1414meas = Orange.feature.scoring.Relief() 
    15 for t in meas.threshold_function("petal length", table): 
     15for t in meas.threshold_function("petal length", iris): 
    1616    print "%5.3f: %5.3f" % t 
    1717 
    18 thresh, score, distr = meas.best_threshold("petal length", table) 
     18thresh, score, distr = meas.best_threshold("petal length", iris) 
    1919print "\nBest threshold: %5.3f (score %5.3f)" % (thresh, score) 
Note: See TracChangeset for help on using the changeset viewer.