public interface Estimator<Self> extends WithParameters
An estimator can be fitted to input data. In order to do that the implementing class has
to provide an implementation of a FitOperation
with the correct input type. In order to make
the FitOperation
retrievable by the Scala compiler, the implementation should be placed
in the companion object of the implementing class.
The pipeline mechanism has been inspired by scikit-learn
Modifier and Type | Method and Description |
---|---|
<Training> void |
fit(DataSet<Training> training,
ParameterMap fitParameters,
FitOperation<Self,Training> fitOperation)
Fits the estimator to the given input data.
|
parameters
<Training> void fit(DataSet<Training> training, ParameterMap fitParameters, FitOperation<Self,Training> fitOperation)
FitOperation
. The computed state will be stored in the implementing class.
training
- Training datafitParameters
- Additional parameters for the FitOperation
fitOperation
- FitOperation
which encapsulates the algorithm logicCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.