&Faakhir30 [ENH] Update Datamodules according to new API design #2423
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 246 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2423"
general
weight: 0.35
phoeenniixx
Stacks on #2410 (and #2313 in coming commits FYI @Faakhir30 )
Also see #2407, #2398
This PR is aimed at
v2-devinstead ofmain, so that we dont break current user code until this design is complete and stable. See #2407 for details. So I had to update the branch target in the workflows for the tests to run (which might fail due to the changes)Stack
TimeSeries- #2410Datamodule- #2423 <- This PRForecaster- #2434Note
The tutorials will fail for sure, will update the notebook in one of the branchs stacked over this PR.
Still need to add the
Forecasterand tests - will add the notebook and docs changes on the upcoming branches as the vignette is incomplete withoutforecasterwhich is not in this PR.Changes
EncDecDataModuleMetadata,TimeSeriesMetadataetc) are added to_metadata.pyutils/_validation- Also had to add
metadatainignoreofsave_hyperparametersofSamformer. See this comment- Uses
EncDecDataModuleMetadata(in case ofEncoderDecoderTImeSeriesDatamodule) and tslib dm has its own metadata dataclass.- Data validation.
-
with_datamethod to create a new dm instance using the already present params (like already fitted scalers - only to create the transformed data).- Like creating a datamodule for prediction where we need the scalers from the datamodule we used for fitting.
- Also useful to create the class "without data" which arrives at
forecaster.fit()while we accept the dm class in__init__of theforecaster. So, the class is actually just empty at this point without data.