yxc97's picture
Upload folder using huggingface_hub
62a2f1c verified
raw
history blame contribute delete
172 Bytes
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