AttributeError: Sequential have no attribute 'history'

Whenever I am trying to call model variable such as

from keras.callbacks import History

model.history()

I am constantly getting this error:

AttributeError: 'Sequential object has no attribute ‘history’

What am I doing wrong?
What should be the correct way of calling history object?

Thank you

A call to

model.fit(...)

or

model.fit_generator(...)

returns a History object, which itself has a history attribute. So you probably want:

h = model.fit(...)   # (or model.fit_generator(...))
h.history

Thank you. I was missing that h.