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

后端 未结 5 841
挽巷
挽巷 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:13

    may be it will help someone. First check your data type if it is numpy array & possibly ur algo required a DF.

    print(X.shape, X.dtype)
    print(y.shape, y.dtype)
    

    convert your numpy array into Pandas DF

    train_x = pd.DataFrame(train_x)
    train_y = pd.DataFrame(train_y)
    

提交回复
热议问题