【发布时间】:2021-10-05 13:59:17
【问题描述】:
请问,为什么 Ensemble 学习中的估算器功能在 python 3 中不起作用?
StackingClassifier(estimators=base_learners, final_estimator=LogisticRegression())
TypeError: __init__() got an unexpected keyword argument 'estimators'
那是错误。
提前致谢。
【问题讨论】:
-
你能提供你正在使用的代码吗?
-
很明显你有一个不期望的关键字参数,但是没有更多上下文就没有帮助
标签: python-3.x ensemble-learning