Ignore:
Timestamp:
02/28/11 13:12:47 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
f7c8320a54b9bfb6a744524bbea26b913f1df33c
Message:

Tree documentation update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/treestructure.py

    r7474 r7713  
    88 
    99data = Orange.data.Table("lenses") 
    10 treeClassifier = Orange.classification.tree.TreeLearnerBase(data) 
     10treeClassifier = Orange.classification.tree.TreeLearner(data) 
    1111 
    1212def treeSize(node): 
     
    5050 
    5151print "\n\nUnpruned tree" 
    52 printTree(treeClassifier) 
     52print treeClassifier.dump() 
    5353 
    5454def cutTree(node, level): 
     
    6464print "\n\nPruned tree" 
    6565cutTree(treeClassifier.tree, 2) 
    66 printTree(treeClassifier) 
     66print treeClassifier.dump() 
    6767 
Note: See TracChangeset for help on using the changeset viewer.