Metrics compute nrmse
Compute the Normalized Root Mean Squared Error. This can be used to better compare models trained on different datasets with differnet scales, although it is not perfectly scale invariant.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
y_pred |
torch.Tensor
|
The predicted y values |
required |
y_true |
torch.Tensor
|
The true y values |
required |
Returns:
Type | Description |
---|---|
torch.Tensor
|
The normalized root mean squared error |
Source code in yeastdnnexplorer/ml_models/metrics.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|