Feat/model pipeline#7
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR implements a comprehensive model pipeline feature for running multiple forecasting models, evaluating their performance, and exporting results. The implementation includes an evaluation framework with metrics, exporters for terminal and Excel output, and a pipeline orchestrator.
Key Changes:
- Added ModelPipeline class for orchestrating model training and evaluation
- Implemented evaluation framework with pluggable Evaluator interface and MAE metric
- Created EvaluationReport for aggregating and analyzing results by hour, horizon, and year
- Added Terminal and Excel exporters with conditional formatting support
- Updated dependencies to include openpyxl for Excel export and scikit-learn
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Updated Python version requirement from 3.14 to 3.10, added openpyxl, scikit-learn with platform-specific wheels |
| pyproject.toml | Added openpyxl>=3.1.0 dependency |
| epftoolbox2/evaluators/base.py | Base abstract class for metric evaluators |
| epftoolbox2/evaluators/mae.py | MAE (Mean Absolute Error) evaluator implementation |
| epftoolbox2/exporters/base.py | Base abstract class for result exporters |
| epftoolbox2/exporters/terminal.py | Rich terminal table exporter with configurable views |
| epftoolbox2/exporters/excel.py | Excel exporter with pivot tables and color-coded heatmaps |
| epftoolbox2/results/report.py | Evaluation report aggregator with multiple grouping dimensions |
| epftoolbox2/pipelines/model_pipeline.py | Pipeline orchestrator for running models and generating reports |
| tests/test_evaluation.py | Unit tests for MAEEvaluator and EvaluationReport |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
@copilot review and write summary