brendanhasz / probflow

A Python package for building Bayesian models with TensorFlow or PyTorch
http://probflow.readthedocs.io
MIT License
171 stars 17 forks source link

Monitor callbacks check only once every n epochs #57

Open brendanhasz opened 3 years ago

brendanhasz commented 3 years ago

Would be nice to add a kwarg to the MonitorMetric callback which makes it only compute the metric on validation data every n epochs, instead of every single epoch.

Course then you'll (ie users) will have to be careful when using it in combo w/ EarlyStopping (since if you have EarlyStopping w/ patience of, say, 5, and have it take a MonitorMetric which is only checking the metric every 5 epochs, then it'll stop after the first 5 epochs because the metric "hasn't changed"!)