Santosh Puvvada
08/15/2024, 8:02 PMValueError: Found missing inputs in X_df. It should have one row per id and time for the complete forecasting horizon.
You can get the expected structure by running `MLForecast.make_future_dataframe(h)` or get the missing combinatins in your current `X_df` by running `MLForecast.get_missing_future(h, X_df)`.
I even checked X_df for any missing inputs, it has no missing inputs & length of X_df is same as h.. Why i am getting this error, can anyone pls help..José Morales
08/15/2024, 8:11 PMids=['specific_id']
in the predict call?Santosh Puvvada
08/15/2024, 8:16 PMJosé Morales
08/15/2024, 8:19 PMfrom mlforecast import MLForecast
from sklearn.linear_model import LinearRegression
from utilsforecast.data import generate_series
from utilsforecast.feature_engineering import trend
freq = 'D'
h = 5
data = generate_series(10, freq=freq)
train, future = trend(data, freq=freq, h=h)
fcst = MLForecast(models=[LinearRegression()], freq=freq)
fcst.fit(train, static_features=[])
fcst.predict(h=h, X_df=future, ids=[0])
You must truly have missing combinations for that idSantosh Puvvada
08/15/2024, 8:32 PMJosé Morales
08/15/2024, 8:35 PMSantosh Puvvada
08/15/2024, 8:35 PMSantosh Puvvada
08/15/2024, 8:35 PMJosé Morales
08/15/2024, 8:36 PMSantosh Puvvada
08/15/2024, 8:39 PM