← Back to Pull requests

[ENH] Add multirocket multivariate cython implementation #7

Closed
unknown closed this pull request without merging on Oct 02, 2026 07:36 UTC
View on GitHub
unknown unknown commented on Sep 27, 2026 08:58 UTC
Author

<!--
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_implementation flag.

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

  • I've added unit tests and made sure they pass locally.
  • ##### For new estimators

  • I've added the estimator to the online documentation.
  • <!--
    Thanks for contributing!
    -->

    Diff: 384 lines (+288 / -96) across 4 files Reviewer: sssilvar Review duration: 7118m
    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
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43% (MEDIUM) · Higher = larger blast radius
    43%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.0% · Safe to merge
    17.0%