openstef icon indicating copy to clipboard operation
openstef copied to clipboard

Inconsistency in r_mea_highest metric

Open wnederpel opened this issue 1 year ago • 0 comments

The documentation of the r_mae_highest metric reads:

openstef.metrics.metrics.r_mae_highest(realised, forecast, percentile=0.95)

Function that calculates the relative mean absolute error for the 5 percent highest realised values.

The range is based on the load range of the previous two weeks.

The default argument for the percentile seems to be inconsistent with the documentation and should be 95 instead of 0.95 to compute the error for the highest 5 percent of realised values (numpy and pandas interpret the percentile argument differently) .

In addition I believe the sentence "The range is based on the load range of the previous two weeks." to be confusing and no longer up to date with the code.

wnederpel avatar Jul 24 '24 12:07 wnederpel