Input contains NaN, infinity or a value too large for dtype('float64').
时间: 2024-05-24 09:12:03 浏览: 11
As an AI language model, I cannot see the input that you are referring to. However, this error message usually occurs when the input data contains invalid values such as NaN (Not a Number), infinity, or a value that is too large to be represented as a float64 data type.
To fix this error, you can try the following steps:
1. Check your input data for any NaN or infinity values using the `np.isnan()` and `np.isinf()` functions from the NumPy library.
2. Replace any NaN or infinity values with valid values or remove them from your dataset.
3. If the input value is too large to be represented as a float64 data type, you can try using a higher precision data type such as float128 or decimal.
4. If you are working with a large dataset, you can also try using a chunking approach to process the data in smaller batches and avoid memory overflow errors.
相关推荐
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)