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

    r9372 r9823  
    1010seed(0) 
    1111 
    12 data = Orange.data.Table("iris.tab") 
     12iris = Orange.data.Table("iris.tab") 
    1313 
    1414print "SOME RANDOMNESS IN STOPING:" 
    1515def_stop = Orange.classification.tree.StopCriteria() 
    1616f = lambda examples, weightID, contingency: def_stop(examples, weightID, contingency) or randint(1, 5) == 1 
    17 l = Orange.classification.tree.TreeLearner(data, stop=f) 
     17l = Orange.classification.tree.TreeLearner(iris, stop=f) 
    1818print l 
    1919 
    2020print "\nRANDOM STOPING:" 
    2121f = lambda x,y,z: randint(1, 5)==1 
    22 l = Orange.classification.tree.TreeLearner(data, stop=f) 
     22l = Orange.classification.tree.TreeLearner(iris, stop=f) 
    2323print l 
Note: See TracChangeset for help on using the changeset viewer.