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

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

Moved documentation to the separate directory.

Line 
1import Orange
2
3table = Orange.data.Table("monks-1.tab")
4
5print "Distributions of classes given the feature value"
6dc = Orange.statistics.contingency.Domain(table)
7print "a: ", dc["a"]
8print "b: ", dc["b"]
9print "c: ", dc["e"]
10print
11
12print "Distributions of feature values given the class value"
13dc = Orange.statistics.contingency.Domain(table, classIsOuter = 1)
14print "a: ", dc["a"]
15print "b: ", dc["b"]
16print "c: ", dc["e"]
17print
Note: See TracBrowser for help on using the repository browser.