Predictor
Predictor
A predictor can be seen as a lambda R -> T where R is the type of the input data representation and T is the type of the result obtained. In this case the prediction is applied on an observation, a predictor also allows to apply the lambda defined previously on a collection of representations and then returns at least the collection of predictions associated to the input queries in an Extension, i.e. a collection of predictions with the identifier associated to the input queries.
trait Predictor[
-R,
+Mem,
+M <: Model[Mem],
+T
] extends Serializable {
/**
* The input model on which predictor works.
*/
def model: M
/**
* Predict a `T` for any representation of type `R`.
*/
def predict: R => T
}