functime-org / functime

Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.

Home Page:https://docs.functime.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_fit() method throws ShapeError

Alla-Z opened this issue · comments

Describe the bug
The quick start code throws an exception when run on my panel data frame, specifically in the _fit() method.
The data frame schema is :
OrderedDict([('restaurant_id', UInt64), ('insertdate', Datetime(time_unit='ns', time_zone=None)), ('prep_time', Int64)])
The data frame shape is:
(735_109,3)

The data frame time column is not regularly sampled therefore we ran the resampling method:

trans = resample(freq='1m', agg_method='mean', impute_method='ffill')
y= final_df.pipe(trans).collect()

We tried the forward fill. backward fill, and zeros as an impute method.

Screenshots
image

Desktop:

  • Functime Version [0.9.3]
  • Polars Version [0.19.19]

Potentially related to #17

Need to create a MRE and double check whether forecast unit tests are still passing.

Ciao @Alla-Z, hope you are doing alright. Do you think you can manage to create a minimal reproducible example (MRE) to see whether the issue is still present in the latest versions of functime?