首页 > 解决方案 > 预测 NaN、无穷大或对于 dtype('float64') 来说太大的值

问题描述

我正在使用 auto_arima 使用以下代码预测一些值:

prediction_tot=pd.DataFrame(arima_model_tot.predict(n_periods=104),index=test_tot.index)
prediction_tot.columns=['total']
prediction_tot

但我收到了这个错误:输入包含 NaN、无穷大或对于 dtype('float64') 来说太大的值。

我尝试使用fillna,但它不起作用,我想我预测的是无穷大或大值而不是NaN。也尝试使用 np.finfo 但徒劳无功,可能是我不知道如何将它集成到我的代码中。感谢你们对我的帮助

标签: pythonarimapmdarima

解决方案


推荐阅读