API Reference

If you would like to use sklvq algorithms the most relevant part to look at is the “Predictors and Transformers” section. However, the other sections provide information about accepted parameters their range and default values.

Predictors and Transformers

LVQBaseClass(distance_type, type] =, …)

Learning Vector Quantization base class

GLVQ(distance_type, type] =, …)

Generalized Learning Vector Quantization

GMLVQ(distance_type, type] =, …[, …])

Generalized Matrix Learning Vector Quantization

LGMLVQ(distance_type, type] =, …)

Localized Generalized Matrix Learning Vector Quantization

Objective Functions

GeneralizedLearningObjective(…)

Generalized learning objective

Activation Functions

ActivationBaseClass()

Activation base class

Identity()

Identity function

Sigmoid(beta, float] = 1)

Sigmoid function

SoftPlus(beta, float] = 1)

Soft+ function

Swish(beta, float] = 1)

Swish function

Discriminant Functions

DiscriminantBaseClass()

Discriminant base class

RelativeDistance()

Relative distance function

Distance Functions

DistanceBaseClass()

Distance base class

Euclidean()

Euclidean distance function

SquaredEuclidean()

Squared Euclidean distance

AdaptiveSquaredEuclidean()

Adaptive squared Euclidean distance

LocalAdaptiveSquaredEuclidean()

Local adaptive squared Euclidean distance

Solvers

SolverBaseClass(objective)

Solver base class

SteepestGradientDescent(objective, max_runs, …)

Steepest gradient descent (SGD)

WaypointGradientDescent(objective, max_runs, …)

Waypoint gradient descent (WGD)

AdaptiveMomentEstimation(objective, …)

Adaptive moment estimation (ADAM)

BroydenFletcherGoldfarbShanno(objective, …)

Broyden Fletcher Goldfarb Shanno (BFGS)

LimitedMemoryBfgs(objective, **kwargs)

Limited memory variant of BFGS (L-BFGS)