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

后端 未结 5 838
挽巷
挽巷 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

    I had a similar problem. In my case it was a problem that I was using a tf.keras.Sequential model but a keras generator.

    Wrong:

    from keras.preprocessing.sequence import TimeseriesGenerator
    gen = TimeseriesGenerator(...)
    

    Correct:

    gen = tf.keras.preprocessing.sequence.TimeseriesGenerator(...)
    

提交回复
热议问题