source: orange/docs/reference/rst/code/knnExample0.py @ 9638:eb3af38491f2

Revision 9638:eb3af38491f2, 151 bytes checked in by umek@…, 2 years ago (diff)

Changed table to data or name of the data set.

For example - instead of

table = Orange.data.Table("housing")

is changed to

housing = Orange.data.Table("housing")

Line 
1import Orange
2iris = Orange.data.Table("iris")
3
4knnLearner = Orange.classification.knn.kNNLearner()
5knnLearner.k = 10
6knnClassifier = knnLearner(iris)
Note: See TracBrowser for help on using the repository browser.