Skip to content

Commit

Permalink
Found a mistake with how mean_absolute_error was calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAV committed Aug 5, 2024
1 parent 6ee58ec commit 17e3489
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workers/src/pvinsight-validation-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,8 @@ def p_absolute_error(output: pd.Series, ground_truth: pd.Series):
def p_mean_absolute_error(output: pd.Series, ground_truth: pd.Series):
output.index = ground_truth.index
difference = output - ground_truth
mean_absolute_error = np.mean(difference)
absolute_difference = np.abs(difference)
mean_absolute_error = np.mean(absolute_difference)
return mean_absolute_error

performance_metrics_map = {
Expand Down

0 comments on commit 17e3489

Please sign in to comment.