Skip to content

Commit

Permalink
[Errors] Implemented MeanPredictionError
Browse files Browse the repository at this point in the history
  • Loading branch information
arpastrana committed Sep 30, 2024
1 parent c1b99d1 commit aefff5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jax_fdm/losses/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ def error(gstate):
return gstate.prediction * gstate.weight


class MeanPredictionError(PredictionError):
"""
The mean prediction error.
Average out all errors because no single error is important enough.
"""
def errors(self, errors):
return super(PredictionError, self).errors(errors) / self.number_of_goals()


class AbsoluteError(Error):
"""
The canonical absolute error.
Expand Down

0 comments on commit aefff5c

Please sign in to comment.