Browse Source

Update metrics.py

main
BBing 2 years ago
parent
commit
a2df113701
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      utils/metrics.py

+ 1
- 0
utils/metrics.py View File

@@ -1,4 +1,5 @@
import numpy as np
import mindspore

def RSE(pred, true):
return np.sqrt(np.sum((true-pred)**2)) / np.sqrt(np.sum((true-true.mean())**2))


Loading…
Cancel
Save