Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.ensemble import RandomForestClassifier
- from sklearn.datasets import make_classification
- X, y = make_classification(n_samples=1000, n_features=4,
- n_informative=2, n_redundant=0,
- random_state=0, shuffle=False)
- clf = RandomForestClassifier(n_estimators=100, random_state=0)
- clf.fit(X, y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement