더북(TheBook)
# RandomForestClassifier를 불러온다.
from sklearn.ensemble import RandomForestClassifier
 
# 랜덤 포레스트 분류기를 사용한다.
model = RandomForestClassifier(n_estimators = 100, n_jobs = -1, random_state=42)
model

실행 결과

RandomForestClassifier(n_jobs=-1, random_state=42)