You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This drops pandas dtype metadata. In particular, pandas category columns lose their categorical dtype, so LightGBM cannot use its built-in categorical handling consistently at prediction time.
The other model forecast paths (HyperTreeAR, HyperTreeETS, and HyperTreeSTL) pass pandas DataFrames into LightGBM prediction, so this is also an API consistency issue.
Reproduction
Train HyperTreeNetAR with a pandas categorical feature:
The training path creates LightGBM datasets from pandas DataFrames, preserving categorical columns. The forecast path converts the feature DataFrame to .values, which strips that information.
Expected behavior
HyperTreeNetAR.forecast should preserve pandas categorical dtypes for LightGBM prediction, matching the other model classes.
Activity
StatMixedML commentedon Jul 13, 2026
Thanks @janrth for raising this.
Well spotted!
I fixed this already in the "conformal" branch of the project some time ago. So please work against this branch, not the main branch.