Skip to content

Add Newton on rank-reduced data coverage across backends #273

Closed

Description

@neuromechanist

PR #271's review found that no backend tests Newton on rank-reduced/rank-deficient data: tests/torch_tests/test_ng_rank_deficient.py never sets do_newton, and the new MLX Newton tests all run full-rank 32-channel sample data. Rank reduction changes n_channels/n_comps and the sphere shape mid-preprocess, which the per-(source, model) curvature arrays and the closed-form direction inherit; the Maxwell-filtered MEG use case that motivated the rank work (#221, #223) is exactly where users would enable Newton on reduced-rank data.

Scope: per backend, one Newton fit on low-rank-projected real sample EEG (the test_low_rank_projected_data_share_fit_completes pattern) asserting completion, finite params, and a non-degenerate stop. Pre-existing gap on all backends, found during epic #260 Phase 3 (#264); kept out of PR #271 to keep the port reviewable.

Related: #264, #221, #223, epic #260.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions