[ENH] Add multirocket multivariate cython implementation #7
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 384 lines diff across 4 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.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7"
general
weight: 0.35
sssilvar
<!--
Thanks for contributing a pull request! Please ensure you have taken a look
at our contribution guide: https://github.com/alan-turing-institute/sktime/blob/main/CONTRIBUTING.md
-->
Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
See also https://github.com/sktime/sktime/pull/11292 regarding the
original_implementationflag.What does this implement/fix? Explain your changes.
<!--
A clear and concise description of what you have implemented.
-->
This PR adds a cython estimator for multirocket (multivariate). In doing so it tries to reuse identical code from the minirocket implementation by @sssilvar (fitting the dilations, and computing the per-combination quantiles, which I've rewritten in a vectorized fashion, along with a non-regression test).
This cython implem has the advantage of accepting either one of float32/float64 inputs, without enforcing a cast, relying on the cython floating dtype.
Does your contribution introduce a new dependency? If yes, which one?
<!--
If your contribution does add a new hard dependency, we may suggest to initially develop your contribution in a separate companion package in https://github.com/sktime/ to keep external dependencies of the core sktime package to a minimum.
-->
No
What should a reviewer concentrate their feedback on?
<!-- This section is particularly useful if you have a pull request that is still in development. You can guide the reviews to focus on the parts that are ready for their comments. We suggest using bullets (indicated by * or -) and filled checkboxes [x] here -->
Probably the conjunction of this PR and the one related to the multirocket bug in the current sktime implementation. I'm not quite sure whether merging this PR before the sktime one previously referenced is the correct way to go; upon merge of this PR, we'd also need to wrap the estimator in the main repo, as was done for _minirocket_cython.
Any other comments?
<!--
Please be aware that we are a loose team of volunteers so patience is necessary; assistance handling other issues is very welcome. We value all user contributions, no matter how minor they are. If we are slow to review, either the pull request needs some benchmarking, tinkering, convincing, etc. or more likely the reviewers are simply busy. In either case, we ask for your understanding during the review process.
-->
PR checklist
<!--
Please go through the checklist below. Please feel free to remove points if they are not applicable.
-->
##### For all contributions
##### For new estimators
<!--
Thanks for contributing!
-->