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/knnInstanceDistance.py

    r9525 r9638  
    11import Orange 
    22 
    3 table = Orange.data.Table("lenses") 
     3lenses = Orange.data.Table("lenses") 
    44 
    55nnc = Orange.classification.knn.FindNearestConstructor() 
     
    77 
    88did = Orange.data.new_meta_id() 
    9 nn = nnc(table, 0, did) 
     9nn = nnc(lenses, 0, did) 
    1010 
    11 print "*** Reference instance: ", table[0] 
    12 for inst in nn(table[0], 5): 
     11print "*** Reference instance: ", lenses[0] 
     12for inst in nn(lenses[0], 5): 
    1313    print inst 
Note: See TracChangeset for help on using the changeset viewer.