Hi I’m trying to save the best model when the validation loss is minimum
this is not my code but I simplified the code for the convenience
in this code I can’t understand the part where
if best_score > avg_val_loss:
torch.save(…)
since best_score value is np.inf
what does it mean by np.inf > avg_val_loss??
how can I save the model according to the validation loss?
any comment would help me!
thanks and have a nice day!