Thanks to visit codestin.com
Credit goes to lib.rs

15 stable releases

2.2.0 Aug 31, 2025
2.1.0 Aug 26, 2025
1.5.0 Nov 1, 2024
1.1.2 Oct 29, 2024

#386 in Machine learning


Used in 8 crates

MIT license

180KB
4K SLoC

Dendritic

Downloads Build Status dependency status codecov Latest Version Docs

Dendritic is a lightweight and extensible optimization library built with flexibility in mind. Contains utilities for first order optimization with multi variate/vector valued functions using ndarray. This crate aims to contain extensible interfaces for common abstractions in optimization & machine learning problems.

🚀 Features

  • 📐 Auto-Differentiation: Reverse-mode autodiff for computing gradients using ndarray.
  • ⚙️ Optimizers: Built-in optimizers like SGD, Adam etc.
  • 📈 Regression Models: Traditional regression models (Linear, Logistic)
  • 🔣 Preprocessing: Lightweight utilities for common preprocessing tasks (e.g., one-hot encoding).
  • 🧱 Modular: Designed to be flexible and easy to extend for research or custom pipelines.

Future Enhancements

There are more features on the roadmap for this crate, v2 of this crate was a redesign of the crate structure and honing in on features that are more aligned with common abstractions in optimization theory. Down below are some ideas for future features that will be incorporated into this crate.

Feature Description
Second Order Optimization Using newton/secant methods that leverage the second derivative for faster convergence.
Population Methods Algorithms that involve a "population" of design points to iterate on and converge towards. Genetic algorithms etc.
Zero Order Methods Optimization methods that don't rely on the first or second derivative for finding the local max or minimum.

Dependencies

~8–12MB
~210K SLoC