from sklearn.ensemble import RandomForestClassifier
引入随机森林
forest = RandomForestClassifier(n_estimators = 100) #引入随机森林,森林之中共有100棵树。(n_estimators 值默认为10。选填
Kaggle题目:用Random Forrest算法计算Titanic沉船事故人员生还状况
原文:http://www.cnblogs.com/chengxuyuanxiaowang/p/4367286.html