Skip to content

Commit

Permalink
Bugfixes in HAE and HALE error metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarusso committed Jun 1, 2024
1 parent 41025ee commit 01f20ac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions timeseria/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def max_absolute_error(list1,list2):
else:
if ae > max_ae:
max_ae = ae
return ae
return max_ae


def mean_absolute_log_error(list1, list2):
Expand All @@ -283,16 +283,13 @@ def max_absolute_log_error(list1,list2):
else:
if ale > max_ale:
max_ale = ale
return ale

return max_ale


def mean_squared_error(a,b):
return sklearn_mean_squared_error(a,b)




def rescale(value, source_from, source_to, target_from=0, target_to=1, how='linear'):
"""Rescale a value from one range to another"""

Expand Down

0 comments on commit 01f20ac

Please sign in to comment.