Interface SparkHPO.RegressionTrainer<T, M extends Regression<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.RegressionTrainer<T, M extends Regression<T>> extends Serializable
Functional interface for training a parameterized regression model on array samples.
  • Method Summary

    Modifier and Type
    Method
    Description
    fit(T[] x, double[] y, Properties props)
    Trains a model for a given hyperparameter configuration.
  • Method Details

    • fit

      M fit(T[] x, double[] y, Properties props)
      Trains a model for a given hyperparameter configuration.
      Parameters:
      x - the training samples.
      y - the response values.
      props - the hyperparameter configuration.
      Returns:
      the fitted model.