[flwr] [sklearn]尝试使用梯度增强的树木

发布于 2025-02-05 17:46:37 字数 499 浏览 3 评论 0原文

现在,我尝试使用FLWR实现梯度提升的树。 我尝试了 flwr 的示例。 他们使用LogisticRecress模型进行MNIST的分类,该模型在我的设置中起作用。

这是我的问题出现的地方: 只需用sklearn.ensember.gradientBoostingClassifier替换Sklear.linear_model.logisticRegress模型不起作用,因为:

我不知道我必须归于哪些值,哪些值等于logistirediregressire。 COEF _。有人有主意吗?

如果我可以制作一个工作版本,我会尝试将其添加到FLWR中作为任何人的参考。

提前致谢

for some day's now I try to implement gradient boosted tree's with flwr.
I tried the example given by flwr.
They use a LogisticRegression Model for the classification of MNIST, which works in my setup.

This is where my problem arise:
Simply replacing the sklear.linear_model.LogisticRegression model with the sklearn.ensemble.GradientBoostingClassifier does not work because:

I don't know which values I have to initalize, which are equivalent to the LogistiRegression.coef_. Does anyone has an idea?

If I could make a working version I would try to add it to flwr as reference for anybody.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文