source: orange/Orange/regression/tree.py @ 11028:009ba5a75e30

Revision 11028:009ba5a75e30, 3.1 KB checked in by Miha Stajdohar <miha.stajdohar@…>, 17 months ago (diff)

Added a common documentation index.

Line 
1"""
2.. index:: regression tree
3
4.. index::
5   single: regression; tree
6
7***************************
8Regression trees (``tree``)
9***************************
10
11Regression tree shares its implementation with
12:obj:`Orange.classification.tree.TreeLearner`, but uses a different set of
13functions to evaluate node splitting and stop criteria. Usage of
14regression trees is straightforward as demonstrated on the following
15example (:download:`regression-tree-run.py
16<code/regression-tree-run.py>`):
17
18.. literalinclude:: code/regression-tree-run.py
19   :lines: 7-
20
21.. autoclass:: TreeLearner
22    :members:
23
24.. autoclass:: TreeClassifier
25    :members:
26
27=================
28SimpleTreeLearner
29=================
30
31.. include:: SimpleTreeLearner.txt
32
33A basic example of using a SimpleTreeLearner is shown below:
34
35.. literalinclude:: code/simple_tree_regression.py
36
37"""
38
39
40from Orange.core import \
41         TreeLearner as _TreeLearner, \
42         TreeClassifier as _TreeClassifier, \
43         TreeDescender as Descender, \
44              TreeDescender_UnknownMergeAsBranchSizes as Descender_UnknownMergeAsBranchSizes, \
45              TreeDescender_UnknownMergeAsSelector as Descender_UnknownMergeAsSelector, \
46              TreeDescender_UnknownToBranch as Descender_UnknownToBranch, \
47              TreeDescender_UnknownToCommonBranch as Descender_UnknownToCommonBranch, \
48              TreeDescender_UnknownToCommonSelector as Descender_UnknownToCommonSelector, \
49         TreeExampleSplitter as Splitter, \
50              TreeExampleSplitter_IgnoreUnknowns as Splitter_IgnoreUnknowns, \
51              TreeExampleSplitter_UnknownsAsBranchSizes as Splitter_UnknownsAsBranchSizes, \
52              TreeExampleSplitter_UnknownsAsSelector as Splitter_UnknownsAsSelector, \
53              TreeExampleSplitter_UnknownsToAll as Splitter_UnknownsToAll, \
54              TreeExampleSplitter_UnknownsToBranch as Splitter_UnknownsToBranch, \
55              TreeExampleSplitter_UnknownsToCommon as Splitter_UnknownsToCommon, \
56              TreeExampleSplitter_UnknownsToRandom as Splitter_UnknownsToRandom, \
57         TreeNode as Node, \
58         TreeNodeList as NodeList, \
59         TreePruner as Pruner, \
60              TreePruner_SameMajority as Pruner_SameMajority, \
61              TreePruner_m as Pruner_m, \
62         TreeSplitConstructor as SplitConstructor, \
63              TreeSplitConstructor_Combined as SplitConstructor_Combined, \
64              TreeSplitConstructor_Measure as SplitConstructor_Measure, \
65                   TreeSplitConstructor_Attribute as SplitConstructor_Feature, \
66                   TreeSplitConstructor_ExhaustiveBinary as SplitConstructor_ExhaustiveBinary, \
67                   TreeSplitConstructor_OneAgainstOthers as SplitConstructor_OneAgainstOthers, \
68                   TreeSplitConstructor_Threshold as SplitConstructor_Threshold, \
69         TreeStopCriteria as StopCriteria, \
70              TreeStopCriteria_Python as StopCriteria_Python, \
71              TreeStopCriteria_common as StopCriteria_common, \
72         SimpleTreeLearner, \
73         SimpleTreeClassifier
74
75             
76from Orange.classification.tree import TreeLearner, TreeClassifier
77
Note: See TracBrowser for help on using the repository browser.