ValueError: cannot reshape array of size 226560000 into shape (1,15000,59,1)
时间: 2024-05-19 21:13:18 浏览: 104
python3.7解决最小二乘遇到ValueError:Expected 2D array, got 1D array instead: array=[5.].关于reshape和predict
This error occurs because the input array has a size of 226560000, which cannot be reshaped into the desired shape of (1,15000,59,1).
The desired shape indicates that the input array should have 1 sample, with 15000 rows, 59 columns, and 1 channel. However, the current size of the input array is much larger than what is required for this shape.
To resolve this error, you can try checking the input array's shape and size to ensure that it matches the expected input shape. Additionally, you may need to preprocess or resize the input data to match the desired shape.
阅读全文