Evaluates the testing data by computing the prediction value and returning a pair of true label value and prediction value.
Evaluates the testing data by computing the prediction value and returning a pair of true label value and prediction value. It is important that the implementation chooses a Testing type from which it can extract the true label value.
Fits the estimator to the given input data.
Fits the estimator to the given input data. The fitting logic is contained in the FitOperation. The computed state will be stored in the implementing class.
Type of the training data
Training data
Additional parameters for the FitOperation
FitOperation which encapsulates the algorithm logic
Predict testing data according the learned model.
Predict testing data according the learned model. The implementing class has to provide a corresponding implementation of PredictDataSetOperation which contains the prediction logic.
Type of the testing data
Type of the prediction data
Testing data which shall be predicted
Additional parameters for the prediction
PredictDataSetOperation which encapsulates the prediction logic
Predictor trait for Flink's pipeline operators.
A Predictor calculates predictions for testing data based on the model it learned during the fit operation (training phase). In order to do that, the implementing class has to provide a FitOperation and a PredictDataSetOperation implementation for the correct types. The implicit values should be put into the scope of the companion object of the implementing class to make them retrievable for the Scala compiler.
The pipeline mechanism has been inspired by scikit-learn
Type of the implementing class