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

Revision 9823:7f9c3f3c6474, 430 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")
4
5print "Distributions of classes given the feature value"
6dc = Orange.statistics.contingency.Domain(monks)
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(monks, 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.