Skip to main content

nlgm banner


[!WARNING] This package is still in its early stages. Updates may cause breaking changes.

Neural Geometry is a Python library designed to explore and manipulate the geometric properties of neural network latent spaces. It provides a set of tools and methods to understand the complex, high-dimensional spaces that neural networks operate in, inspired by recent approaches (e.g. Borde et al., 2023).

The primary features of Neural Geometry include:

  • An implementation of the neural latent geometry search framework. This framework provides a unique approach to product manifold inference, which can be beneficial in various fields such as machine learning and data analysis.
  • A selection of optimization methods to cater to different needs and requirements. These methods can be used to fine-tune the performance of the neural latent geometry search framework.

This package is designed to be compatible with popular scientific computing libraries such as NumPy and PyTorch, making it a versatile tool for researchers and developers working in these environments. Comprehensive documentation is available at docs.

Installation

Neural Geometry requires Python 3.12 or newer.

To install Neural Geometry, use uv:

uv pip install neural-geometry

You can install optional packages for development or visualization using:

uv sync --extra dev --extra vis
uv pip install -e ".[dev,vis]"        # editable install from pyproject.toml
uv pip install neural-geometry[dev,vis]  # install from pypi

Usage

After installing, you can import the package and use it by following the example.

Contributing

Contributions to Neural Geometry are welcome! To contribute:

  1. Fork the repository.
  2. Install the pre-commit hooks using pre-commit install.
  3. Create a new branch for your changes.
  4. Make your changes in your branch.
  5. Submit a pull request.

Before submitting your pull request, please make sure your changes pass all tests.

uv run pytest

License

Neural Geometry is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for neural-geometry 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neural-geometry 0.1.3
File Size Uploaded
neural_geometry-0.1.3.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neural-geometry 0.1.3
File Interpreter ABI Platform
neural_geometry-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / neural_geometry-0.1.3.tar.gz

Download URL neural_geometry-0.1.3.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bacbdf2c904f43522a419eb1ed5f35cad19e62afbc71126cac4a745b7025d836
BLAKE2b-256 checksum
How to use checksums
b37798dd787bdfeaa9669dc6470bfed02a2e96955c532fe6a86b025afacb5826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release files / neural_geometry-0.1.3-py3-none-any.whl

Download URL neural_geometry-0.1.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
855792b8df6e9577bc5c193e92e76da9b673dc206163b9da81efb5696aad3823
BLAKE2b-256 checksum
How to use checksums
7aaf1b8816fd25ab18df3de83fc4642b939c02458caa55f913abee6fa071265c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page