📅  最后修改于: 2022-03-11 14:45:21.396000             🧑  作者: Mango
import sklearn as sk
from sklearn.ensemble import RandomForestClassifier
RF = RandomForestClassifier(n_estimators=100, max_depth=2, random_state=0)
RF.fit(X, y)
RF.predict(X.iloc[460:,:])
round(RF.score(X,y), 4)