1edv / evolution

This repository contains the code for our manuscript - 'The evolution, evolvability, and engineering gene regulatory DNA'
MIT License
93 stars 27 forks source link

Monitoring R2 at train time #11

Closed aga-relation closed 1 year ago

aga-relation commented 1 year ago

Hi!

In the paper you mention that "the stopping criterion monitored was the ‘r-squared’ value".

However, when I run the training notebook, I get the following warning: "Early stopping conditioned on metric val_r_square which is not available".

After checking the documentation, it seems that the R Squared is available in Tensorflow Addons, however tfa not compatible with tf1.14? Could you please let me know what I am missing?

Thank you very much! :)

1edv commented 1 year ago

Hi,

I do remember the 'r-squared' computation being quite finicky:

Good luck!

aga-relation commented 1 year ago

Thank you very much for your reply! I am plotting R2 at train time and find that it is very stochastic - is that the expected behaviour?

1edv commented 1 year ago

If you are plotting it out for each batch, the stochasticity is to be expected.

If you are running it at the end of each epoch on just the validation set, it should stabilize after a couple of epochs.