Interface SparkHPO.ClassificationTrainer<T, M extends Classifier<T>>
- Type Parameters:
T- the sample type.M- the model type.
- All Superinterfaces:
Serializable
- Enclosing class:
SparkHPO
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface SparkHPO.ClassificationTrainer<T, M extends Classifier<T>>
extends Serializable
Functional interface for training a parameterized classifier on array samples.
-
Method Summary
Modifier and TypeMethodDescriptionfit(T[] x, int[] y, Properties props) Trains a model for a given hyperparameter configuration.
-
Method Details
-
fit
Trains a model for a given hyperparameter configuration.- Parameters:
x- the training samples.y- the training labels.props- the hyperparameter configuration.- Returns:
- the fitted model.
-