TransWikia.com

Is it possible to use a different metric in early_stopping and ModelCheckpoint?

Data Science Asked on August 18, 2021

I’m using the tensorflow functions checkpoint and early stopping.

Can I use ‘val accuracy’ in checkpoint to  and ‘val loss’ in early stopping? or  Should I use the same metric in both functions?

checkpoint = callbacks.ModelCheckpoint('', monitor='val_accuracy',
                                           save_best_only=True, save_weights_only=True, verbose=1) 

early_stopping = EarlyStopping(monitor='val_loss', patience=2)

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP