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-relief-gainRatio.py

    r9372 r9823  
    66 
    77import Orange 
    8 table = Orange.data.Table("voting") 
     8voting = Orange.data.Table("voting") 
    99 
    1010print 'Relief GainRt Feature' 
    11 ma_def = Orange.feature.scoring.score_all(table) 
     11ma_def = Orange.feature.scoring.score_all(voting) 
    1212gr = Orange.feature.scoring.GainRatio() 
    13 ma_gr  = Orange.feature.scoring.score_all(table, gr) 
     13ma_gr  = Orange.feature.scoring.score_all(voting, gr) 
    1414for i in range(5): 
    1515    print "%5.3f  %5.3f  %s" % (ma_def[i][1], ma_gr[i][1], ma_def[i][0]) 
Note: See TracChangeset for help on using the changeset viewer.