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-calls.py

    r9372 r9823  
    66 
    77import Orange 
    8 table = Orange.data.Table("titanic") 
     8titanic = Orange.data.Table("titanic") 
    99meas = Orange.feature.scoring.GainRatio() 
    1010 
    1111print "Call with variable and data table" 
    12 print meas(0, table) 
     12print meas(0, titanic) 
    1313 
    1414print "Call with variable and domain contingency" 
    15 domain_cont = Orange.statistics.contingency.Domain(table) 
     15domain_cont = Orange.statistics.contingency.Domain(titanic) 
    1616print meas(0, domain_cont) 
    1717 
    1818print "Call with contingency and class distribution" 
    19 cont = Orange.statistics.contingency.VarClass(0, table) 
     19cont = Orange.statistics.contingency.VarClass(0, titanic) 
    2020class_dist = Orange.statistics.distribution.Distribution( \ 
    21     table.domain.class_var, table) 
     21    titanic.domain.class_var, titanic) 
    2222print meas(cont, class_dist) 
Note: See TracChangeset for help on using the changeset viewer.