Ignore:
Timestamp:
02/06/12 20:01:02 (2 years ago)
Author:
lanumek
Branch:
default
Children:
9835:e48466fc6eb2, 9841:05a160804431
rebase_source:
8cf30121654f25c9cb6d8ac9bdaf163e305d62da
Message:

Changed names of data sets (table replaced with data or name of the data set).

File:
1 edited

Legend:

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

    r9724 r9823  
    1515knn = Orange.classification.knn.kNNLearner(train, k=10) 
    1616for i in range(5): 
    17     instance = test.random_instance() 
     17    instance = test.randomexample() 
    1818    print instance.getclass(), knn(instance) 
    1919 
     
    2323knn = Orange.classification.knn.kNNLearner() 
    2424knn.k = 10 
    25 knn.distance_constructor = Orange.distance.Hamming() 
     25knn.distanceConstructor = Orange.core.ExamplesDistanceConstructor_Hamming() 
    2626knn = knn(train) 
    2727for i in range(5): 
    28     instance = test.random_instance() 
     28    instance = test.randomexample() 
    2929    print instance.getclass(), knn(instance) 
Note: See TracChangeset for help on using the changeset viewer.