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

    r9567 r9823  
    77 
    88import Orange 
    9 data = Orange.data.Table("iris.tab") 
     9iris = Orange.data.Table("iris.tab") 
    1010 
    1111print "BIG TREE:" 
    12 tree1 = Orange.classification.tree.TreeLearner(data) 
     12tree1 = Orange.classification.tree.TreeLearner(iris) 
    1313print tree1.to_string(leaf_str="%m", node_str=".") 
    1414 
    1515print "\nPRE-PRUNED TREE:" 
    16 tree2 = Orange.classification.tree.TreeLearner(data, max_majority=0.7) 
     16tree2 = Orange.classification.tree.TreeLearner(iris, max_majority=0.7) 
    1717print tree2.to_string(leaf_str="%m", node_str=".") 
    1818 
Note: See TracChangeset for help on using the changeset viewer.