决策树分类器花了16分钟才能适合

发布于 2025-01-29 11:03:05 字数 521 浏览 3 评论 0原文

因此,由于某些原因,我的笔记本电脑将数据放到了DecisionTreeClalefier中。通常需要大约1秒才能适合其他类型的机器学习模型。有人可以帮助我解决这里发生的事情吗?我不确定我应该提供哪些信息来帮助这一点。随意问!

我的猜测是与编码器变换语法有关,我不知道如何从许多在线搜索中进行修复。它表明我的方法会导致性能差,但是该语法来自库本身,因此我不知道如何更改内部的代码。

enter image description here

So, for some reasons, It took my laptop to 16min to fit data into DecisionTreeClassifier. It usually take like 1 sec to fit into other type of machine learning model. Anyone can help me with what is happening here? I am not sure what information should I provide to help with this. Feel free to ask away!

My guess is it has to do with encoder transform syntax, which I have no idea how to fix from many online searches. It shows that my approach will lead to poor performance, but this syntax is from the library itself, so I do not know how to change the code inside.
enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒江雪… 2025-02-05 11:03:05

大概,您的数据集在编码后具有更多的列,这会导致性能差和较长的培训时间。您可以在编码后检查数据集的列,以确保。

Probably, your dataset has way more columns after encoding, which leads to poor performance and a long training time. You can check the columns of the dataset after encoding to be sure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文