Skip to main content

anofox_ml_linear/
lib.rs

1//! SGD-based linear models.
2//!
3//! Provides [`SgdClassifier`] and [`SgdRegressor`] — linear models trained with
4//! stochastic gradient descent. These scale well to large datasets and support
5//! multiple loss functions and regularization options.
6
7pub mod passive_aggressive;
8pub mod sgd_classifier;
9pub mod sgd_common;
10pub mod sgd_regressor;
11
12pub use passive_aggressive::{
13    FittedPassiveAggressiveClassifier, FittedPassiveAggressiveRegressor, PaVariant,
14    PassiveAggressiveClassifier, PassiveAggressiveRegressor,
15};
16pub use sgd_classifier::{ClassifierLoss, FittedSgdClassifier, SgdClassifier};
17pub use sgd_common::{LearningRate, Penalty as SgdPenalty};
18pub use sgd_regressor::{FittedSgdRegressor, RegressorLoss, SgdRegressor};