值太大而对于float32

发布于 2025-02-03 04:28:49 字数 124 浏览 2 评论 0原文

我正在尝试在大数据上部署预测模型。我尝试使用的模型是随机的森林和决策树,但无济于事。每当我遇到相同的错误,对于dtype float32而言。因此,只想知道是否有任何可以处理dtype float64的机器学习预测模型?请帮忙。谢谢。

I am trying to deploy predictive models on big data. The models i have tried to use is random forest and decision tree, but to no avail. Every time I am getting the same error of too large for dtype float32. So, just want to know that Is there any machine learning predictive models that can handle dtype float64?? Please help. Thanks.

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

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

发布评论

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

评论(1

错爱 2025-02-10 04:28:49

尝试使用比Float32更容易容量的数据类型,例如十进制

>>> from decimal import Decimal    
>>> Decimal(2.675)
Decimal('2.67499999999999982236431605997495353221893310546875')

Try using a data type that has more capacity than float32, like Decimal

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