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

    r9372 r9823  
    11import Orange 
    22 
    3 table = Orange.data.Table("monks-1.tab") 
     3monks = Orange.data.Table("monks-1.tab") 
    44 
    55print "Distributions of classes given the feature value" 
    6 dc = Orange.statistics.contingency.Domain(table) 
     6dc = Orange.statistics.contingency.Domain(monks) 
    77print "a: ", dc["a"] 
    88print "b: ", dc["b"] 
     
    1111 
    1212print "Distributions of feature values given the class value" 
    13 dc = Orange.statistics.contingency.Domain(table, classIsOuter = 1) 
     13dc = Orange.statistics.contingency.Domain(monks, classIsOuter = 1) 
    1414print "a: ", dc["a"] 
    1515print "b: ", dc["b"] 
Note: See TracChangeset for help on using the changeset viewer.