Changeset 9164:f34427c0a110 in orange


Ignore:
Timestamp:
11/02/11 14:59:15 (2 years ago)
Author:
jzbontar <jure.zbontar@…>
Branch:
default
Convert:
a155568e9133041b82455f3caf4149a093d64a4e
Message:

SimpleTreeLearner appears in Orange.regression as well

Location:
orange
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/classification/tree.py

    r9115 r9164  
    13341334================= 
    13351335 
    1336 :obj:`SimpleTreeLearner` is an implementation of regression and classification 
    1337 trees. It is faster than :obj:`TreeLearner` at the expense of flexibility. 
    1338 It uses gain ratio for classification and mse for regression. 
    1339  
    1340 :obj:`SimpleTreeLearner` was developed for speeding up the construction 
    1341 of random forests, but can also be used as a standalone tree. 
    1342  
    1343 .. class:: SimpleTreeLearner 
    1344  
    1345     .. attribute:: max_majority 
    1346  
    1347         Maximal proportion of majority class. When this is exceeded, 
    1348         induction stops. 
    1349  
    1350     .. attribute:: min_instances 
    1351  
    1352         Minimal number of instances in leaves. Instance count is weighed. 
    1353  
    1354     .. attribute:: max_depth 
    1355  
    1356         Maximal depth of tree. 
    1357  
    1358     .. attribute:: skip_prob 
    1359          
    1360         At every split an attribute will be skipped with probability ``skip_prob``. 
    1361         Useful for building random forests. 
     1336.. include:: /SimpleTreeLearner.txt 
    13621337         
    13631338Examples 
  • orange/Orange/regression/tree.py

    r7922 r9164  
    2727 
    2828 
     29================= 
     30SimpleTreeLearner 
     31================= 
     32 
     33.. include:: /SimpleTreeLearner.txt 
     34 
     35A basic example of using a SimpleTreeLearner is shown below: 
     36 
     37.. literalinclude:: code/simple_tree_regression.py 
    2938 
    3039""" 
     
    6271         TreeStopCriteria as StopCriteria, \ 
    6372              TreeStopCriteria_Python as StopCriteria_Python, \ 
    64               TreeStopCriteria_common as StopCriteria_common 
     73              TreeStopCriteria_common as StopCriteria_common, \ 
     74         SimpleTreeLearner, \ 
     75         SimpleTreeClassifier 
     76 
    6577               
    6678from Orange.classification.tree import TreeLearner, TreeClassifier 
     79 
Note: See TracChangeset for help on using the changeset viewer.