Base class for random forest classifier. More...
Public Member Functions | |
def | __init__ |
def | avg_tree_depth |
def | predict |
def | train |
Public Attributes | |
number_of_dimensions | |
number_of_learners |
Base class for random forest classifier.
Definition at line 13 of file random_forest.py.
def ml_lib.random_forest.RFBase.__init__ | ( | self, | |
dataset = None , |
|||
number_of_dimensions = None , |
|||
number_of_learners = 100 |
|||
) |
dataset | Dataset object |
number_of_dimensions | unclear which direction, but should be around 10-20% of original data dimension |
number_of_learners | limited by processor performance, higher is better |
Definition at line 20 of file random_forest.py.
def ml_lib.random_forest.RFBase.avg_tree_depth | ( | self | ) |
Definition at line 42 of file random_forest.py.
def ml_lib.random_forest.RFBase.predict | ( | self, | |
data, | |||
vote_combine_function = None |
|||
) |
data | |
vote_combine_function | function to combine votes, by default returns the label with the most votes |
Definition at line 30 of file random_forest.py.
def ml_lib.random_forest.RFBase.train | ( | self, | |
dataset | |||
) |
Reimplemented in ml_lib.random_forest.RFRandomInputSubset, and ml_lib.random_forest.RFBreiman.
Definition at line 39 of file random_forest.py.
Reimplemented in ml_lib.random_forest.RFRandomInputSubset, and ml_lib.random_forest.RFBreiman.
Definition at line 20 of file random_forest.py.
Definition at line 20 of file random_forest.py.