This metric-learn repository contains Python implementations of metric learning algorithms.
Leanpass
Leanpass provides a lightweight implementation for computing gradients.

About Leanpass
Leanpass is a lightweight, NumPy-based automatic differentiation library for small neural network experiments. It is designed to be easy to read and simple to inspect, which makes it useful for learning how automatic differentiation works internally. The project is distributed as a repository and installs with pip.
Its source describes it as built for small-scale work rather than large models. Its documentation covers the API reference, core concepts, and guides on regression, classification, MNIST, gradient checking, and custom layers.
Key features
- Tensor objects with reverse-mode autodiff
- Activation functions: ReLU, sigmoid, softmax, tanh, LeakyReLU, and GELU
- Linear layers and multilayer perceptrons
- Loss utilities: MSE, cross-entropy, and binary cross-entropy
- SGD with momentum and L2 weight decay, and Adam with optional L2 weight decay
- Inverted dropout layer for use during training
- Depends only on NumPy
- Readable implementation without heavy abstraction
- Suited to teaching, prototyping, and small-scale experimentation
- Described as intended for small neural network experiments
Leanpass at a glance
- Website
- github.com/Terminay/LeanPass
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Leanpass alternatives
Tools and sites you could use instead, ranked by how closely they match.
metric-learn provides Python implementations of metric learning algorithms.
This Scikit-learn extension accelerates compatible applications through optimized implementations.
Opytimizer provides Python implementations of metaheuristic optimization algorithms for search problems.
OpenMetricLearning provides metric learning pipelines, models, and a model zoo.
Hugging Face Accelerate launches and trains PyTorch models across devices and distributed configurations.
Popular in ML Training & Optimization
Well-known listings from the same topic.
Leanpass FAQ
What does Leanpass depend on?
How is Leanpass installed?
Where is the full documentation?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












