You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the IPython notebook example, I get the following error:
AttributeError Traceback (most recent call last)
<ipython-input-6-9386fd8b8064> in <module>()
1 model.fit(X_train, Y_train, batch_size=batch_size, nb_epoch=nb_epoch,
2 show_accuracy=True, verbose=1, validation_data=(X_test, Y_test),
----> 3 callbacks=[loss_plot, conv_weights])
/usr/local/lib/python2.7/dist-packages/keras/models.pyc in fit(self, x, y, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, **kwargs)
406 shuffle=shuffle,
407 class_weight=class_weight,
--> 408 sample_weight=sample_weight)
409
410 def evaluate(self, x, y, batch_size=32, verbose=1,
/usr/local/lib/python2.7/dist-packages/keras/engine/training.pyc in fit(self, x, y, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight)
1051 verbose=verbose, callbacks=callbacks,
1052 val_f=val_f, val_ins=val_ins, shuffle=shuffle,
-> 1053 callback_metrics=callback_metrics)
1054
1055 def evaluate(self, x, y, batch_size=32, verbose=1, sample_weight=None):
/usr/local/lib/python2.7/dist-packages/keras/engine/training.pyc in _fit_loop(self, f, ins, out_labels, batch_size, nb_epoch, verbose, callbacks, val_f, val_ins, shuffle, callback_metrics)
810 for l, o in zip(out_labels, val_outs):
811 epoch_logs['val_' + l] = o
--> 812 callbacks.on_epoch_end(epoch, epoch_logs)
813 if callback_model.stop_training:
814 break
/usr/local/lib/python2.7/dist-packages/keras/callbacks.pyc in on_epoch_end(self, epoch, logs)
37 def on_epoch_end(self, epoch, logs={}):
38 for callback in self.callbacks:
---> 39 callback.on_epoch_end(epoch, logs)
40
41 def on_batch_begin(self, batch, logs={}):
/usr/local/lib/python2.7/dist-packages/agnez-0.1.0-py2.7.egg/agnez/app_callbacks.pyc in on_epoch_end(self, epoch, logs)
75
76 def on_epoch_end(self, epoch, logs={}):
---> 77 self.train_values.append(self.totals['loss']/self.seen)
78 self.valid_values.append(logs['val_loss'])
79
AttributeError: 'LossPlot' object has no attribute 'totals'
...and I don't entirely know how to fix this. Any help appreciated.
I checked and there is a self.totals in agnez/keras_callbacks.py (in the Plot class), which doesn't seem to be used here, and in keras/callbacks.py (BaseLogger class, but also not sure if used here).
My Keras is version 1.0.6, Theano version 0.9.0dev1.dev-a668c6c5b6d055b233aa5bc50b22800d996ffce1 on Python 2.7, Ubuntu 15.10 64bit.
The text was updated successfully, but these errors were encountered:
When running the IPython notebook example, I get the following error:
...and I don't entirely know how to fix this. Any help appreciated.
I checked and there is a
self.totals
inagnez/keras_callbacks.py
(in the Plot class), which doesn't seem to be used here, and inkeras/callbacks.py
(BaseLogger class, but also not sure if used here).My Keras is version 1.0.6, Theano version 0.9.0dev1.dev-a668c6c5b6d055b233aa5bc50b22800d996ffce1 on Python 2.7, Ubuntu 15.10 64bit.
The text was updated successfully, but these errors were encountered: