Skip to content

Conversation

@chaoming0625
Copy link
Member

@chaoming0625 chaoming0625 commented Jan 5, 2026

Summary

Testing

  • pytest
  • pre-commit run --all-files
  • other (describe):

Checklist

  • docs updated as needed
  • changelog entry (if user-facing)
  • linked issue: closes #

Notes

Summary by Sourcery

Introduce a high-level training framework and reorganize public APIs across core submodules.

New Features:

  • Add a Trainer framework with Lightning-style modules, callbacks, loggers, data loaders, distributed strategies, checkpointing, and progress utilities for JAX/brainstate models.

Enhancements:

  • Refine public APIs and exports for visualize, surrogate, quad, metric, input, optim, init, conn, and file submodules, providing richer user-facing docstrings and clearer, curated symbol lists.
  • Simplify braintools top-level exports to expose trainer utilities and explicit spike encoder/operation functions while dropping the param subpackage from the public API.
  • Improve file I/O abstractions by formalizing MATLAB loading and msgpack-based checkpoint helpers as the public file interface.

Documentation:

  • Add extensive module-level documentation and usage examples for visualization, surrogate gradients, integration schemes, metrics, input generation, optimization, initialization, connectivity, file I/O, and the new training framework.

Tests:

  • Add trainer module tests covering LightningModule, DataLoader, callbacks, loggers, distributed strategy selection, checkpointing helpers, and a simple end-to-end training loop.
  • Update matfile tests to import the internal implementation module directly.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @chaoming0625, your pull request is larger than the review limit of 150000 diff characters

@chaoming0625
Copy link
Member Author

@sourcery-ai title

@sourcery-ai sourcery-ai bot changed the title New Introduce trainer module and refactor public APIs and docs Jan 5, 2026
@chaoming0625
Copy link
Member Author

@sourcery-ai summary

@chaoming0625 chaoming0625 merged commit db019e3 into main Jan 5, 2026
6 checks passed
@chaoming0625 chaoming0625 deleted the new branch January 5, 2026 05:51
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.

2 participants