source: orange/docs/reference/rst/code/imputation-values.py @ 9806:01ddd2a2ff48

Revision 9806:01ddd2a2ff48, 528 bytes checked in by tomazc <tomaz.curk@…>, 2 years ago (diff)

Updated documentation on Orange.feature.imputation.

Line 
1# Description: Shows how to impute missing values in data Table.
2# Category:    imputation
3# Uses:        bridges
4# Referenced:  Orange.feature.imputation.html
5# Classes:     Orange.feature.imputation.ImputerConstructor_minimal
6
7import Orange
8bridges = Orange.data.Table("bridges")
9
10imputer = Orange.feature.imputation.ImputerConstructor_minimal()
11imputer = imputer(bridges)
12
13print "Example with missing values"
14print bridges[10]
15print "Imputed values:"
16print imputer(bridges[10])
17
18impdata = imputer(bridges)
19print impdata[10]
20
Note: See TracBrowser for help on using the repository browser.