Skip to content

Commit f4d88d6

Browse files
authored
Depreciate accduration
1 parent 719dab9 commit f4d88d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rescomp/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import rescomp as rc
22
import numpy as np
33
import findiff as fd
4+
from warnings import warn
45

56
def L2(x, axis=0):
67
return np.sum(x**2, axis=axis)**0.5
@@ -15,6 +16,7 @@ def relerr(true, pre, order=2, axis=0):
1516
return norm(true - pre, axis=axis) / norm(true, axis=axis)
1617

1718
def accduration(true, pre, tol=0.2, order="inf", axis=0):
19+
warn("The function `rescomp.accduration` is depreciated. Use `rescomp.validpredictiontime` instead")
1820
n = pre.shape[axis]
1921
for i in range(n):
2022
if axis == 0:

0 commit comments

Comments
 (0)