Answers for "sklearn random forest use in production"

8

sklearn random forest

from sklearn.ensemble import RandomForestClassifier


clf = RandomForestClassifier(max_depth=2, random_state=0)

clf.fit(X, y)

print(clf.predict([[0, 0, 0, 0]]))
Posted by: Guest on November-26-2020
0

sklearn random forest feature importance

print(__doc__)
import matplotlib.pyplot as plt
Posted by: Guest on May-09-2021

Code answers related to "sklearn random forest use in production"

Python Answers by Framework

Browse Popular Code Answers by Language