boostcampaitech4nlp1 / level1_semantictextsimilarity_nlp-level1-nlp-09

level1_semantictextsimilarity_nlp-level1-nlp-09 created by GitHub Classroom
3 stars 0 forks source link

[Tip] Remember epsilon when you make RMSE using Pytorch #7

Open jinmyeongAN opened 1 year ago

jinmyeongAN commented 1 year ago

RMSE problem

Solution

eps = 1e-6
rmse = torch.sqrt(torch.nn.MSELoss(logits, y.float()) + eps)