Tensorflow Data Adapter Error: ValueError: Failed to find data adapter that can handle input

后端 未结 5 839
挽巷
挽巷 2021-01-01 10:06

While running a sentdex tutorial script of a cryptocurrency RNN, link here

YouTube Tutorial: Cryptocurrency-predicting RNN Model,

but have encountered an err

5条回答
  •  感动是毒
    2021-01-01 10:28

    You can avoid this error by converting your labels to arrays before calling model.fit():

    train_x = np.asarray(train_x)
    train_y = np.asarray(train_y)
    validation_x = np.asarray(validation_x)
    validation_y = np.asarray(validation_y)
    

提交回复
热议问题