File size: 172 Bytes
62a2f1c
 
 
 
 
 
 
1
2
3
4
5
6
7
import torch
import torch.nn as nn

def RMSE(predictions, targets):
    mse_eval = nn.MSELoss()
    rmse = torch.sqrt(mse_eval(predictions, targets)).item()
    return rmse