Skip to content

Instantly share code, notes, and snippets.

@ychennay
Created May 12, 2019 17:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ychennay/e2691ca79abd34d7eef111dc9ebe2f7d to your computer and use it in GitHub Desktop.
A brief summary of sklearn's random forest class
class RandomForestRegressor(ForestRegressor):
def __init__(self,
n_estimators='warn', criterion="mse", max_depth=None, min_samples_split=2, min_samples_leaf=1,
min_weight_fraction_leaf=0.,max_features="auto",max_leaf_nodes=None,min_impurity_decrease=0.,
min_impurity_split=None,bootstrap=True,oob_score=False,n_jobs=None,random_state=None,verbose=0,
warm_start=False):
super().__init__(
base_estimator=DecisionTreeRegressor(),
... # pass through to ForestRegressor parent class many other constructor parameters omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment