python教学案例-Python机器学习经典实例
您運行的scikit-learn是什么版本呢?我在python3.7 的 scikit-learn 0.20.0測試了,沒有問題
from sklearn.ensemble import RandomForestRegressor
RandomForestRegressor(n_estimators=1000, max_depth=10, min_samples_split=1)
RandomForestRegressor(bootstrap=True, criterion="mse", max_depth=10,
max_features="auto", max_leaf_nodes=None,
min_impurity_decrease=0.0, min_impurity_split=None,
min_samples_leaf=1, min_samples_split=1,
min_weight_fraction_leaf=0.0, n_estimators=1000, n_jobs=None,
oob_score=False, random_state=None, verbose=0, warm_start=False)
官方文檔如下:https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor
```
min_samples_split : int, float, optional (default=2)
The minimum number of samples required to split an internal node:
If int, then consider min_samples_split as the minimum number.
If float, then min_samples_split is a fraction and ceil(min_samples_split * n_samples) are the minimum number of samples for each split.
```
神煩小寶 發(fā)表于 2018-11-23 08:41:29
超強干貨來襲 云風(fēng)專訪:近40年碼齡,通宵達(dá)旦的技術(shù)人生總結(jié)
以上是生活随笔為你收集整理的python教学案例-Python机器学习经典实例的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 内存之王:vivox9s让我告别存储焦虑
- 下一篇: 内存市场三巨头:ABC、DEF和GHI,