microsoft / FLAML

A fast library for AutoML and tuning. Join our Discord: https://discord.gg/Cppx2vSPVP.
https://microsoft.github.io/FLAML/
MIT License
3.92k stars 510 forks source link

leaking data in 4. Forecasting Discrete Values in automl_time_series_forecast #1175

Open Sandy4321 opened 1 year ago

Sandy4321 commented 1 year ago

leaking data in 4. Forecasting Discrete Values in automl_time_series_forecast https://github.com/microsoft/FLAML/blob/main/notebook/automl_time_series_forecast.ipynb df["above_mean_sales"] = np.where(df["Sales"] > df["Sales"].mean(), 1, 0)

you put to train data information from test data