how to get 'history' from saved sequential model?

375 views
Skip to first unread message

Omar

unread,
Aug 15, 2018, 5:59:34 PM8/15/18
to Keras-users
I am trying to get the "history" method from a saved model but is not in the object:

from keras.models import load_model

folder_path = '80_acc_best_model/'

model = load_model(folder_path + 'deep_learning_model.h5')


model.history() returns:


model.history()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'Sequential' object has no attribute 'history'


Ted Yu

unread,
Aug 15, 2018, 6:05:06 PM8/15/18
to omar.cost...@gmail.com, keras...@googlegroups.com
Do you want to access _keras_history attribute ?

I wonder what use case you have for accessing this (internal) attribute.

Thanks

--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/b6946427-6f31-412d-9d54-de5042c4d683%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Omar

unread,
Aug 15, 2018, 7:50:32 PM8/15/18
to Keras-users
there is no _keras_history attribute even after compiling.

Regards,
Omar
Reply all
Reply to author
Forward
0 new messages