Public Member Functions | Public Attributes
ml_lib.random_forest.RFBase Class Reference

Base class for random forest classifier. More...

Inheritance diagram for ml_lib.random_forest.RFBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def avg_tree_depth
def predict
def train

Public Attributes

 number_of_dimensions
 number_of_learners

Detailed Description

Base class for random forest classifier.

Definition at line 13 of file random_forest.py.


Constructor & Destructor Documentation

def ml_lib.random_forest.RFBase.__init__ (   self,
  dataset = None,
  number_of_dimensions = None,
  number_of_learners = 100 
)
Parameters:
datasetDataset object
number_of_dimensionsunclear which direction, but should be around 10-20% of original data dimension
number_of_learnerslimited by processor performance, higher is better

Definition at line 20 of file random_forest.py.


Member Function Documentation

Definition at line 42 of file random_forest.py.

def ml_lib.random_forest.RFBase.predict (   self,
  data,
  vote_combine_function = None 
)
Parameters:
data
vote_combine_functionfunction 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 
)

Member Data Documentation

Definition at line 20 of file random_forest.py.


The documentation for this class was generated from the following file:


ml_lib
Author(s): haidai
autogenerated on Wed Nov 27 2013 11:46:34