bert icon indicating copy to clipboard operation
bert copied to clipboard

how to save the best model according to the valid dataset

Open liu-nlper opened this issue 8 years ago • 2 comments

liu-nlper avatar Nov 13 '18 09:11 liu-nlper

You can look into the Estimator API, but I would recommend just saving a lot of checkpoints by setting keep_checkpoint_max to a large value in tf.contrib.tpu.RunConfig and then evaluating after the fact by passing checkpoints from various epochs as init_checkpoint.

jacobdevlin-google avatar Nov 15 '18 02:11 jacobdevlin-google

Do we still have to do using keep_checkpoint_max or do we have another fix for this . we have to do evaluation for each checkpoint. what if we have so many checkpoint model

Nidhi-kumari avatar May 05 '20 06:05 Nidhi-kumari