Supervised ♣ Random Forest
from sklearn.ensemble import RandomForestClassifier model = RandomForestClassifier(n_estimators=30) model.fit(X1, Y1) score = model.score(X2, Y2)
b5
from sklearn.ensemble import RandomForestClassifier model = RandomForestClassifier(n_estimators=30) model.fit(X1, Y1) score = model.score(X2, Y2)