MCPcopy Create free account
hub / github.com/InternScience/InternAgent / RMSE

Function RMSE

tasks/AutoPower/code/metrics.py:4–7  ·  view source on GitHub ↗
(predictions, targets)

Source from the content-addressed store, hash-verified

2import torch.nn as nn
3
4def RMSE(predictions, targets):
5 mse_eval = nn.MSELoss()
6 rmse = torch.sqrt(mse_eval(predictions, targets)).item()
7 return rmse

Callers 2

vm_va_matrixFunction · 0.90
vm_va_matrixFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected