How to check the weights after every epoc in Keras model : <p>I am using the sequential model in Keras. I would like to check the weight of the model after every epoch. Could you please guide me on how to do so. </p>

<pre><code>model = Sequential()
model.add(Embedding(max_features, 128, dropout=0.2))
model.add(LSTM(128, dropout_W=0.2, dropout_U=0.2))  
model.add(Dense(1))
model.add(Activation('sigmoid'))
model.compile(loss='binary_crossentropy',optimizer='adam',metrics['accuracy'])
model.fit(X_train, y_train, batch_size=batch_size, nb_epoch=5 validation_data=(X_test, y_test))
</code></pre>

<p>Thanks in advance.</p>
