TypeError: Unexpected keyword argument passed to optimizer: learning_rate

前端 未结 13 1594
故里飘歌
故里飘歌 2021-02-13 04:14

I am trying to load a Keras model which was trained on an Azure VM (NC promo). But I am getting the following error.

TypeError: Unexpected keyword argumen

13条回答
  •  失恋的感觉
    2021-02-13 04:43

    I am also experiencing this when I try to load my model on another machine. Also trained the initial modal on an azure VM. I have tried the suggestions above and can't figure out what is causing it. Any other thoughts? Below is my code to train the model.

    Models were trained and are being used in my api projects using the following versions: keras 2.3.0 tensorflow 1.14.0

    history = model.fit(X, y,validation_split=0.1, \
                    epochs=20, \
                    batch_size=1000, \
                    class_weight = cw)
    

提交回复
热议问题