ValueError: cannot reshape array of size 150000000 into shape (50000,20,50,1)
SeekPoint opened this issue · 0 comments
ub16hp@UB16HP:/ub16_prj/Event-Driven-Stock-Prediction-using-Deep-Learning$ python model_cnn.py/ub16_prj/Event-Driven-Stock-Prediction-using-Deep-Learning$ vim model_cnn.py
Using TensorFlow backend.
Traceback (most recent call last):
File "model_cnn.py", line 99, in
main()
File "model_cnn.py", line 94, in main
model_selection(clusters)
File "model_cnn.py", line 84, in model_selection
X_train, y_train, X_valid, y_valid, X_test, y_test = get_Feature_Label(clusters=clusters)
File "model_cnn.py", line 40, in get_Feature_Label
X = X.reshape(X.shape[0], 20, 50, 1).astype('float32')
ValueError: cannot reshape array of size 150000000 into shape (50000,20,50,1)
ub16hp@UB16HP:
ub16hp@UB16HP:~/ub16_prj/Event-Driven-Stock-Prediction-using-Deep-Learning$ ll
total 576
drwxrwxr-x 4 ub16hp ub16hp 4096 12月 25 16:04 ./