genn-team / ml_genn

A library for deep learning with Spiking Neural Networks (SNN).
https://ml-genn.readthedocs.io
GNU Lesser General Public License v2.1
24 stars 7 forks source link

user callbacks with online validation #90

Closed neworderofjamie closed 2 months ago

neworderofjamie commented 7 months ago

This currently behaves strangely with e.g. on_epoch_begin callback being called once for the training epoch and once for the subsequent validation 'epoch.

When training, Keras does:

  1. on_train_begin
  2. on_epoch_begin
  3. on_train_batch_begin
  4. on_train_batch_end
  5. on_test_begin
  6. on_test_batch_begin
  7. on_test_batch_end
  8. on_test_end
  9. on_epoch_end
  10. on_train_end

5-8 only happen when doing validation. When testing, only 5-8 occur.