Skip to content

Implement BFAST Monitor Workflow#74

Merged
BnJam merged 2 commits intofeat/bfast-monitor-scaffold-10782325817424901614from
bfast-monitor-impl-10071568848564471051
Jan 7, 2026
Merged

Implement BFAST Monitor Workflow#74
BnJam merged 2 commits intofeat/bfast-monitor-scaffold-10782325817424901614from
bfast-monitor-impl-10071568848564471051

Conversation

@google-labs-jules
Copy link
Contributor

This patch implements the BFAST Monitor algorithm, replacing the placeholder scaffolding with a complete implementation using a pure-Rust linear algebra library to avoid linker issues.


PR created automatically by Jules for task 10071568848564471051 started by @BnJam

Implements the BFAST Monitor algorithm for change detection. This patch replaces the placeholder scaffolding with a complete implementation using Ordinary Least Squares (OLS) to fit a harmonic model and an OLS-MOSUM process to detect breaks.

Key changes:
- Replaced the `ndarray-linalg` dependency with `nalgebra` to avoid linker issues with OpenBLAS.
- Implemented the full OLS harmonic model fitting and prediction logic.
- Implemented the OLS-MOSUM change detection process.
- Updated the Python wrapper and type stubs to match the new Rust function signature.
- Added a comprehensive test case to validate the implementation.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Implements the BFAST Monitor algorithm for change detection. This patch replaces the placeholder scaffolding with a complete implementation using Ordinary Least Squares (OLS) to fit a harmonic model and an OLS-MOSUM process to detect breaks.

Key changes:
- Replaced the `ndarray-linalg` dependency with `nalgebra` to avoid linker issues with OpenBLAS.
- Implemented the full OLS harmonic model fitting and prediction logic.
- Implemented the OLS-MOSUM change detection process.
- Updated the Python wrapper and type stubs to match the new Rust function signature.
- Added a comprehensive test case to validate the implementation.
- Fixed clippy warnings for `unnecessary_cast` and `too_many_arguments`.
@BnJam BnJam marked this pull request as ready for review January 7, 2026 00:39
@BnJam BnJam merged commit f90e208 into feat/bfast-monitor-scaffold-10782325817424901614 Jan 7, 2026
5 checks passed
@BnJam BnJam deleted the bfast-monitor-impl-10071568848564471051 branch January 7, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant