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

    r9749 r9823  
    11import Orange 
    22 
    3 table = Orange.data.Table("iris.tab") 
    4 cont = Orange.statistics.contingency.VarClass(0, table) 
     3iris = Orange.data.Table("iris.tab") 
     4cont = Orange.statistics.contingency.VarClass(0, iris) 
    55 
    66print "Contingency items:" 
     
    1515 
    1616 
    17 midkey = (cont.keys()[0] + cont.keys()[1]) / 2.0 
     17midkey = (cont.keys()[0] + cont.keys()[1])/2.0 
    1818print "cont[%5.3f] =" % midkey, cont[midkey] 
    1919 
Note: See TracChangeset for help on using the changeset viewer.