Basic DecisionTree that the random forest is based on. More...
Public Member Functions | |
| def | __init__ |
| def | get_tree_depth |
| def | make_leaf |
| def | predict |
| def | train |
| def | transform_input |
| Identity function. | |
Public Attributes | |
| children | |
| prediction | |
| split_point | |
Basic DecisionTree that the random forest is based on.
Definition at line 201 of file random_forest.py.
| def ml_lib.random_forest.DecisionTree.__init__ | ( | self, | |
dataset = None, |
|||
splitting_func = min_entropy_split |
|||
| ) |
Definition at line 203 of file random_forest.py.
| def ml_lib.random_forest.DecisionTree.get_tree_depth | ( | self | ) |
Definition at line 260 of file random_forest.py.
| def ml_lib.random_forest.DecisionTree.make_leaf | ( | self, | |
| dataset | |||
| ) |
Definition at line 226 of file random_forest.py.
| def ml_lib.random_forest.DecisionTree.predict | ( | self, | |
| input | |||
| ) |
Definition at line 238 of file random_forest.py.
| def ml_lib.random_forest.DecisionTree.train | ( | self, | |
| dataset, | |||
splitting_func = min_entropy_split |
|||
| ) |
Definition at line 209 of file random_forest.py.
| def ml_lib.random_forest.DecisionTree.transform_input | ( | self, | |
| input, | |||
tree = None |
|||
| ) |
Identity function.
Definition at line 257 of file random_forest.py.
Definition at line 203 of file random_forest.py.
Definition at line 203 of file random_forest.py.
Definition at line 209 of file random_forest.py.