sklvq.solvers.SolverBaseClass
- class sklvq.solvers.SolverBaseClass(objective: ObjectiveBaseClass)[source]
Solver base class
Abstract class for implementing solvers. Provides abstract methods with expected calls signatures.
See also
- abstract solve(data: np.ndarray, labels: np.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