【问题标题】:AttributeError: 'Sequential' object has no attribute '_feed_input_names' in Keras TheanoAttributeError:“顺序”对象在 Keras Theano 中没有属性“_feed_input_names”
【发布时间】:2019-07-30 10:34:48
【问题描述】:

在执行语句时,

hist = model.fit(X_train, Y_train, batch_size=batch_size, epochs=nb_epoch,
               verbose=1, validation_data=(X_test, Y_test))
I'm getting the error,
 File "C:\Users\Parag\Anaconda3\envs\keras_theano\lib\site-packages\keras\engine\training.py", line 737, in _standardize_user_data
    feed_input_names = self._feed_input_names

AttributeError: 'Sequential' 对象没有属性 '_feed_input_names'

【问题讨论】:

    标签: python keras theano


    【解决方案1】:

    尝试将input_shape 参数添加到网络的第一层。这为我解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-20
      • 1970-01-01
      • 1970-01-01
      • 2022-01-04
      • 2021-10-23
      • 2020-01-29
      • 2020-01-03
      相关资源
      最近更新 更多