Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update evaluation example in README #226

Closed
baniasbaabe opened this issue Jul 24, 2023 · 0 comments · Fixed by #237
Closed

Update evaluation example in README #226

baniasbaabe opened this issue Jul 24, 2023 · 0 comments · Fixed by #237

Comments

@baniasbaabe
Copy link

Description

The evaluation in the README.md isn't correct anymore.

  1. HierarchicalEvaluation isn't in hierarchicalforecast.core anymore.
  2. HierarchicalEvaluation's argument is Y_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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant