0

Getting this error in python:

ValueError: cannot reshape array of size 14333830 into shape (14130,1,1286),

How do I solve this?

This is the code generating the error: data_train1=data_train.reshape(14130,1,1286)

hdgh
  • 1
  • 2

1 Answers1

0

For doing reshaping, your new shape should match the previous shape. If you multiply 14130 * 1286, you get 18171180 which is obviously not the same as 14333830. So you must write something correct.

Tugay
  • 2,057
  • 5
  • 17
  • 32