Ignore:
Timestamp:
02/05/12 22:37:07 (2 years ago)
Author:
umek@…
Branch:
default
rebase_source:
eb6a120705f3462186b982a698c0a7ad9f947e24
Message:

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")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/knnExample1.py

    r9372 r9638  
    11import Orange 
    2 table = Orange.data.Table("iris") 
     2iris = Orange.data.Table("iris") 
    33 
    4 rndind = Orange.core.MakeRandomIndices2(table, p0=0.8) 
    5 train = table.select(rndind, 0) 
    6 test = table.select(rndind, 1) 
     4rndind = Orange.core.MakeRandomIndices2(iris, p0=0.8) 
     5train = iris.select(rndind, 0) 
     6test = iris.select(rndind, 1) 
    77 
    88knn = Orange.classification.knn.kNNLearner(train, k=10) 
Note: See TracChangeset for help on using the changeset viewer.