source: orange/docs/reference/rst/code/statistics-contingency.py @ 9823:7f9c3f3c6474

Revision 9823:7f9c3f3c6474, 355 bytes checked in by lanumek, 2 years ago (diff)

Changed names of data sets (table replaced with data or name of the data set).

Line 
1import Orange
2
3monks = Orange.data.Table("monks-1.tab")
4cont = Orange.statistics.contingency.VarClass("e", monks)
5for val, dist in cont.items():
6    print val, dist
7
8print cont.keys()
9print cont.values()
10print cont.items()
11
12print cont[0]
13print cont["1"]
14
15for i in cont:
16    print i
17
18cont.normalize()
19for val, dist in cont.items():
20    print val, dist     
Note: See TracBrowser for help on using the repository browser.