source: orange/docs/reference/rst/code/statistics-contingency.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 378 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1import Orange.statistics.contingency
2
3table = Orange.data.Table("monks-1.tab")
4cont = Orange.statistics.contingency.VarClass("e", table)
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.