網頁

2019年7月6日 星期六

FutureWarning: The default value of n_estimators will change from 10 in version 0.20 to 100 in 0.22.

/anaconda3/envs/tensorflow/lib/python3.6/site-packages/sklearn/ensemble/forest.py:246: FutureWarning: The default value of n_estimators will change from 10 in version 0.20 to 100 in 0.22.
  "10 in version 0.20 to 100 in 0.22.", FutureWarning)



解決方式
ExtraTreesClassifier(n_estimators=100)
RandomForestClassifier(n_estimators=100)



參考
https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html

沒有留言:

張貼留言