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

    r9372 r9823  
    11import Orange 
    22 
    3 table = Orange.data.Table("iris") 
    4 cont = Orange.statistics.contingency.ClassVar("sepal length", table) 
     3iris = Orange.data.Table("iris") 
     4cont = Orange.statistics.contingency.ClassVar("sepal length", iris) 
    55 
    66print "Inner variable: ", cont.inner_variable.name 
     
    2121print 
    2222 
    23 cont = Orange.statistics.contingency.ClassVar(table.domain["sepal length"],  
    24                                               table.domain.class_var) 
    25 for ins in table: 
     23cont = Orange.statistics.contingency.ClassVar(iris.domain["sepal length"],  
     24                                              iris.domain.class_var) 
     25for ins in iris: 
    2626    cont.add_var_class(ins["sepal length"], ins.get_class()) 
    2727 
Note: See TracChangeset for help on using the changeset viewer.