Exception: Unexpected data type <class 'numpy.int64'>
时间: 2024-05-29 07:12:05 浏览: 146
异常数据1
This exception occurs when a function or operation expects a certain data type, but receives a different data type. In this case, the function or operation may be expecting a different data type, but it receives a numpy.int64 data type instead.
To resolve this exception, you can try converting the data type to the expected type using the appropriate function. For example, if the function expects a float data type, you can use the float() function to convert the numpy.int64 data type to a float data type.
Alternatively, you can check the input data and make sure that it is in the correct format before passing it to the function or operation. This can help avoid unexpected data type errors.
阅读全文