Skip to content

Remove dead numpy_impl/newton.py module #270

Closed

Description

@neuromechanist

pamica/numpy_impl/newton.py (176 lines) is dead code carrying pre-#21/#24 math: compute_newton_parameters takes the density derivative dpdf instead of the score (the issue #21 Bug 1 form), omits the sbeta^2 factor on kappa and the mu^2 fold in lambda, and update_unmixing_matrix uses the += right-multiply form that was the issue #24 root cause. The live numpy Newton path is inlined in numpy_impl/core.py and does not import this module; the only consumer in the repo is pamica/tests/test_amica.py:11 (test_newton_direction, synthetic RandomState data).

Per the no-deprecation rule, remove the module and its test outright (the behavior it pins is superseded by the torch/numpy Newton tests in tests/torch_tests/test_ng_backend.py and the #267 regression coverage), or fold anything still worth pinning into the live-path tests first.

Found during epic #260 Phase 3 (#264) exploration; kept out of that phase's scope to leave the Newton port reviewable on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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