Changeset 7763:bc3b43d45a45 in orange


Ignore:
Timestamp:
03/18/11 11:00:20 (3 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
8f17751e5462a29ccaaeb114407193fdd9521b7b
Message:

Updated code example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/lookup-table.py

    r7660 r7763  
    1414 
    1515print len(table_s) 
    16 print len(abe.sortedExamples) 
     16print len(abe.sorted_examples) 
    1717 
    18 for i in abe.sortedExamples[:10]: 
     18for i in abe.sorted_examples[:10]: 
    1919    print i 
    2020print 
    2121 
    22 for i in abe.sortedExamples[:10]: 
     22for i in abe.sorted_examples[:10]: 
    2323    print i, i.getclass().svalue 
    2424print 
     
    2626y2 = Orange.data.variable.Discrete("y2", values = ["0", "1"]) 
    2727abe2 = Orange.classification.lookup.LookupLearner(y2, [a, b, e], table) 
    28 for i in abe2.sortedExamples[:10]: 
     28for i in abe2.sorted_examples[:10]: 
    2929    print i, i.getclass().svalue 
    3030print 
     
    3232y2 = Orange.data.variable.Discrete("y2", values = ["0", "1"]) 
    3333abe2 = Orange.classification.lookup.LookupLearner(y2, [a, b], table) 
    34 for i in abe2.sortedExamples: 
     34for i in abe2.sorted_examples: 
    3535    print i, i.getclass().svalue 
Note: See TracChangeset for help on using the changeset viewer.