invinc4u
invinc4u

Reputation: 1185

How to set minimum number of instances to split in Random Forest in Weka?

How do we set the minimum number of instances to split on parameter (corresponding "min_samples_split" and "min_samples_leaf" parameter in sickit-learn http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html) in Weka Random forest in Java ? I looked at the documentation here http://weka.sourceforge.net/doc.dev/weka/classifiers/trees/RandomForest.html but could not find the solution .

Any help would be appreciated.

Upvotes: 4

Views: 800

Answers (1)

Dyno Fu
Dyno Fu

Reputation: 9044

from the RandomForest link you provided, i think it is -M, basically the minimum number of nodes at leaf.

-M Set minimum number of instances per leaf. (default 1)

Upvotes: 0

Related Questions