carlomazzaferro / scikit-hts

Hierarchical Time Series Forecasting with a familiar API
MIT License
222 stars 39 forks source link

Error while fitting data #89

Open Himank-K opened 2 years ago

Himank-K commented 2 years ago

Description

Trying to fit a dataset. dataset is structured properly, as hierarchy tree is properly built

(

ht = hts.hierarchy.HierarchyTree.from_nodes(nodes=hierarchy, df=df)

does not give any error and the tree is built properly how I want.)

No error while defining the model either. (

clf = HTSRegressor(model='prophet', revision_method='BU', n_jobs=2)

gives no error)

But when I try to fit my data, it throws AttributeError saying: 'NoneType' object has no attribute 'fit'

What I Did

clf.fit(df, hierarchy)