Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Invalid objective: rmse #1

Open
tengpeng opened this issue Feb 17, 2016 · 3 comments
Open

Exception: Invalid objective: rmse #1

tengpeng opened this issue Feb 17, 2016 · 3 comments

Comments

@tengpeng
Copy link

When I was running train.py, I got

Traceback (most recent call last):
  File "train.py", line 147, in <module>
    train()
  File "train.py", line 52, in train
    model_systole = get_model()
  File "/kaggle-ndsb2/model.py", line 52, in get_model
    model.compile(optimizer=adam, loss='rmse')
  File "/home/pt/anaconda2/lib/python2.7/site-packages/keras/models.py", line 460, in compile
    self.loss = objectives.get(loss)
  File "/home/pt/anaconda2/lib/python2.7/site-packages/keras/objectives.py", line 62, in get
    return get_from_module(identifier, globals(), 'objective')
  File "/home/pt/anaconda2/lib/python2.7/site-packages/keras/utils/generic_utils.py", line 14, in get_from_module
    str(identifier))
Exception: Invalid objective: rmse

@tengpeng
Copy link
Author

I did not change anything in the code, including the loss function.

@jocicmarko
Copy link
Owner

RMSE loss function is removed in the newest version of Keras.
I just updated the code to include RMSE as a custom loss function - check model.py.

@tengpeng
Copy link
Author

Solved. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants