Update evaluation example in `README`
Closed this issue · 0 comments
baniasbaabe commented
Description
The evaluation in the README.md
isn't correct anymore.
HierarchicalEvaluation
isn't inhierarchicalforecast.core
anymore.HierarchicalEvaluation
's argument isY_test_df
The example should be something like this:
from hierarchicalforecast.evaluation import HierarchicalEvaluation
def mse(y, y_hat):
return np.mean((y-y_hat)**2)
evaluator = HierarchicalEvaluation(evaluators=[mse])
evaluator.evaluate(Y_hat_df=Y_rec_df, Y_test_df=Y_test_df,
tags=tags, benchmark='Naive')
Link
No response