aprender-core-0.31.1 has been yanked.
aprender-core
The core ML library for the Aprender framework — pure Rust, zero unsafe, 13,026 tests.
Published as aprender-core on crates.io; import as use aprender::*. Part of a 70-crate monorepo that ships the apr CLI (cargo install aprender).
Install
[]
= "0.29"
# Optional features
= { = "0.29", = ["format-compression", "format-quantize"] }
Or with cargo-add:
Quick Start
use LinearRegression;
use Estimator;
use KMeans;
use UnsupervisedEstimator;
let data = vec!;
let mut model = new;
model.fit?;
let labels = model.predict?;
Features
Supervised Learning
- Linear Regression, Logistic Regression
- Decision Trees (CART), Random Forest, Gradient Boosting (GBM)
- K-Nearest Neighbors (KNN), Support Vector Machines (SVM)
Unsupervised Learning
- K-Means clustering, PCA decomposition, ICA
Time Series
- ARIMA (AutoRegressive Integrated Moving Average)
Bayesian Inference
- Conjugate priors, Bayesian Linear Regression
- Generalized Linear Models (Poisson, Gamma, Binomial)
Graph Neural Networks
- Dijkstra, A*, PageRank, community detection
Text Processing
- BPE and SentencePiece tokenizers, stop words, stemming
- Chat template engine (minijinja), chat markup language
APR Model Format
- Read/write the native
.aprbinary format format-compressionfeature: LZ4 and Zstd tensor compressionformat-quantizefeature: Q4K and Q6K quantization
Optional Feature Flags
| Feature | Description |
|---|---|
format-compression |
LZ4 and Zstd compressed tensor storage |
format-quantize |
Q4K / Q6K quantization for model export |
Documentation
License
MIT. See LICENSE.