sklvq.solvers.SolverBaseClass¶
-
class
sklvq.solvers.SolverBaseClass(objective: sklvq.objectives._base.ObjectiveBaseClass)[source]¶ Solver base class
Abstract class for implementing solvers. Provides abstract methods with expected calls signatures.
See also
-
abstract
solve(data: numpy.ndarray, labels: numpy.ndarray, model: LVQBaseClass) → None[source]¶ Solve updates the model it is given and does not return anything.
- Parameters
- datandarray of shape (number of observations, number of dimensions)
The data.
- labelsndarray of size (number of observations)
The labels of the samples in the data.
- modelLVQBaseClass
The initial model that will also hold the final result
-
abstract