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

    r9372 r9823  
    11import Orange 
    22 
    3 table = Orange.data.Table("bridges.tab") 
    4 cont = Orange.statistics.contingency.VarVar("SPAN", "MATERIAL", table) 
     3bridges = Orange.data.Table("bridges.tab") 
     4cont = Orange.statistics.contingency.VarVar("SPAN", "MATERIAL", bridges) 
    55 
    66print "Distributions:" 
     
    1717    print 
    1818 
    19 cont = Orange.statistics.contingency.VarVar(table.domain["SPAN"], table.domain["MATERIAL"]) 
    20 for ins in table: 
     19cont = Orange.statistics.contingency.VarVar(bridges.domain["SPAN"], bridges.domain["MATERIAL"]) 
     20for ins in bridges: 
    2121    cont.add(ins["SPAN"], ins["MATERIAL"]) 
    2222 
Note: See TracChangeset for help on using the changeset viewer.