Skip to content

Implement save/load persistence for AMICATorchNG #36

Closed

Description

@neuromechanist

Follow-up from #32.

AMICA.save() / AMICA.load() currently raise NotImplementedError: the sole backend, AMICATorchNG, is not an nn.Module and has no state_dict(). After #32 removed the basic AMICATorch (which had a torch.save(state_dict()) path), there is no working persistence for the PyTorch model.

Scope

  • Design and implement a persistence format for AMICATorchNG (e.g. torch.save of the fitted tensors A/W/c/mu/alpha/beta/rho/gm + sldet + the constructor config needed to rebuild the object, or a numpy .npz).
  • Wire it through AMICA.save() / AMICA.load().
  • Round-trip test on real sample data (fit -> save -> load -> transform matches), no synthetic data.

Note: #15 tracks the (now-removed) test-coverage gap for the old AMICATorch-based save/load and is distinct from this design work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions