Add validation/test split and evaluate final model performance#26
Open
fquaglio wants to merge 6 commits into
Open
Add validation/test split and evaluate final model performance#26fquaglio wants to merge 6 commits into
fquaglio wants to merge 6 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
The original notebook presents an end-to-end workflow for time series forecasting, covering data processing, feature engineering, and model comparison across both statistical and machine learning approaches.
The training set is used to train the models while the test set is directly used for performance evaluation and model comparison. However, an explicit final model selection step with an independent evaluation on unseen data was not included.
Key improvements introduced
In this contribution, a more structured evaluation strategy has been introduced for the pollution time series use case:
Note: the original naming convention was preserved for compatibility with the existing notebook structure. Specifically,
df_testrefers now to the validation set anddf_test2refers to the final test set.All modifications were implemented in the main notebook
time-series-forecasting-tutorial.ipynb, which contains the full analysis pipeline, model comparison, and final evaluation.The
environment.ymlfile was updated to ensure compatibility between package versions and improve reproducibility of the project setup across different environments.Model selection and results
Based on validation results across all tested models, LightGBM was selected as the final model due to its performance and lower complexity compared to ensemble approaches, which showed only marginal improvements.
Additional improvements
Outputs
results/results_summary.csvresults/final_scores.csv