📜  Scikit 学习随机森林分类器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:58.870000             🧑  作者: Mango

代码示例4
from sklearn.ensemble import BaggingClassifier
from sklearn.neighbors import KNeighborsClassifier
bagging = BaggingClassifier(KNeighborsClassifier(),
                            max_samples=0.5, max_features=0.5)