Interface Model<T>

All Known Subinterfaces:
ClassificationModel, RegressionModel

public interface Model<T>
  • Method Details

    • predict

      Try<? extends T> predict(Observation o)
      Tentatively performs a prediction
      Parameters:
      o - the Observation to score
      Returns:
      a Try for the prediction result, with either the prediction or an error message detailing why the prediction could not be computed
    • observationBuilder

      Observation.Builder observationBuilder()
      Prepare an Observation.Builder, that is aware of the normalization and coercion necessary for this Model.