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/statistics-contingency3.py

    r9372 r9823  
    11import Orange.statistics.contingency 
    22 
    3 table = Orange.data.Table("monks-1.tab") 
    4 cont = Orange.statistics.contingency.VarClass("e", table) 
     3monks = Orange.data.Table("monks-1.tab") 
     4cont = Orange.statistics.contingency.VarClass("e", monks) 
    55 
    66print "Inner variable: ", cont.inner_variable.name 
     
    2424print 
    2525 
    26 cont = Orange.statistics.contingency.VarClass(table.domain["e"], 
    27                                               table.domain.class_var) 
    28 for ins in table: 
     26cont = Orange.statistics.contingency.VarClass(monks.domain["e"], 
     27                                              monks.domain.class_var) 
     28for ins in monks: 
    2929    cont.add_var_class(ins["e"], ins.getclass()) 
    3030 
Note: See TracChangeset for help on using the changeset viewer.