[ENH] Implement Baseline forecaster in v2 interface - #2382
Conversation
59dd440 to
1bd2fe7
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2382 +/- ##
=======================================
Coverage ? 87.93%
=======================================
Files ? 199
Lines ? 11106
Branches ? 0
=======================================
Hits ? 9766
Misses ? 1340
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| "info:name": "Baseline", | ||
| "info:compute": 1, | ||
| "info:y_type": ["numeric"], | ||
| "authors": ["Dev10-sys", "kalpanagola9897"], |
There was a problem hiding this comment.
i think we should also credit the v1 authors
| "capability:pred_int": False, | ||
| "capability:flexible_history_length": True, | ||
| "capability:cold_start": False, | ||
| "python_dependencies": [], |
There was a problem hiding this comment.
you dont need to add this, as there are no soft-deps here
| def get_test_train_params(cls) -> list[dict[str, Any]]: | ||
| """Return testing parameter settings for trainer fixtures.""" | ||
| params: list[dict[str, Any]] = [ | ||
| {}, |
There was a problem hiding this comment.
can you add more params? like use different losses etc
There was a problem hiding this comment.
I htink these tests are already handled by the unified test framework. Do we still need these?
phoeenniixx
left a comment
There was a problem hiding this comment.
Thanks!
I have added some comments pls see above
7d0da85 to
e26ff6a
Compare
Hey @phoeenniixx , sorted out all the feedback pls checkk.. |
a955110 to
05f7225
Compare
Migrates the Baseline forecasting model to the PyTorch Forecasting v2 architecture. Implements Baseline_v2 inheriting from BaseModel for point forecasting using the last observed target, along with Baseline_pkg_v2 inheriting from Base_pkg to manage datamodule and trainer setups. Includes fixture parameter configurations integrated into the estimator compliance test suite.
05f7225 to
ba02b96
Compare
Reference Issues/PRs
Partially addresses #1736 and #1992.
What does this implement/fix? Explain your changes.
Adds a v2 implementation of
Baselineforecaster asBaseline_v2.Baseline_v2inheriting fromBaseModelthat repeats the last known target value across prediction horizon.Baseline_pkg_v2inheriting fromBase_pkg.pytorch_forecasting/models/baseline/while maintaining backward compatibility for v1Baseline.tests/test_models/test_baseline_v2.py.What should a reviewer concentrate their feedback on?
Baseline_v2.forwardBaseline_pkg_v2Did you add any tests for the change?
tests/test_models/test_baseline_v2.pywithcheck_estimatorcompliance.PR checklist
tests/test_models/test_baseline_v2.py)