Nixtla / hierarchicalforecast

Probabilistic Hierarchical forecasting 👑 with statistical and econometric methods.
https://nixtlaverse.nixtla.io/hierarchicalforecast
Apache License 2.0
590 stars 76 forks source link

[utils] HierarchicalPlot is not plotting #251

Closed iamyihwa closed 1 year ago

iamyihwa commented 1 year ago

What happened + What you expected to happen

  1. HierarchicalPlot is not plotting.

from hierarchicalforecast.utils import HierarchicalPlot

HierarchicalPlot(S, tags)

Based on recommendations from this issue and this issue have checked the versions of matplotlib (3.6.1) and pandas (2.0.3), but is the version that should be safe.

image image

Versions / Dependencies

0.4.0

Reproduction script

from hierarchicalforecast.utils import HierarchicalPlot HierarchicalPlot(S, tags)

Issue Severity

None

iamyihwa commented 1 year ago

Sorry! It was my mistake! After instantiating the class, need to call the appropriate functions, to plot them!

hplots = HierarchicalPlot(S=S, tags=tags) hplots.plot_hierarchical_predictions_gap( Y_df=Y_hat_df, models='ETS', xlabel='Month', ylabel='Predictions', )