microsoft / FLAML

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

Fix typo in ts_model.py: change train_df.y to train_df[target_col] #1312

Open Programmer-RD-AI opened 1 month ago

Programmer-RD-AI commented 1 month ago

Why are these changes needed?

This PR addresses a typo in automl/timeseries/ts_model.py. The lines checking for zero values in the dataset incorrectly reference train_df.y instead of train_df[target_col]. This update ensures the correct column is referenced, improving the robustness of the parameter override logic for the Holt-Winters model.

Related issue number

Closes #1279

Checks