public class Predictor$ extends Object
Modifier and Type | Field and Description |
---|---|
static Predictor$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Predictor$() |
Modifier and Type | Method and Description |
---|---|
<Instance extends Estimator<Instance>,Model,Testing,PredictionValue> |
defaultEvaluateDataSetOperation(PredictOperation<Instance,Model,Testing,PredictionValue> predictOperation,
TypeInformation<Testing> testingTypeInformation,
TypeInformation<PredictionValue> predictionValueTypeInformation)
Default
EvaluateDataSetOperation which takes a PredictOperation to calculate a tuple
of true label value and predicted label value. |
<Instance extends Estimator<Instance>,Model,Testing,PredictionValue> |
defaultPredictDataSetOperation(PredictOperation<Instance,Model,Testing,PredictionValue> predictOperation,
TypeInformation<Testing> testingTypeInformation,
TypeInformation<PredictionValue> predictionValueTypeInformation)
Default
PredictDataSetOperation which takes a PredictOperation to calculate a tuple
of testing element and its prediction value. |
public static final Predictor$ MODULE$
public <Instance extends Estimator<Instance>,Model,Testing,PredictionValue> PredictDataSetOperation<Instance,Testing,scala.Tuple2<Testing,PredictionValue>> defaultPredictDataSetOperation(PredictOperation<Instance,Model,Testing,PredictionValue> predictOperation, TypeInformation<Testing> testingTypeInformation, TypeInformation<PredictionValue> predictionValueTypeInformation)
PredictDataSetOperation
which takes a PredictOperation
to calculate a tuple
of testing element and its prediction value.
Note: We have to put the TypeInformation implicit values for Testing and PredictionValue after
the PredictOperation implicit parameter. Otherwise, if it's defined as a context bound, then
the Scala compiler does not find the implicit PredictOperation
value.
predictOperation
- testingTypeInformation
- predictionValueTypeInformation
- public <Instance extends Estimator<Instance>,Model,Testing,PredictionValue> EvaluateDataSetOperation<Instance,scala.Tuple2<Testing,PredictionValue>,PredictionValue> defaultEvaluateDataSetOperation(PredictOperation<Instance,Model,Testing,PredictionValue> predictOperation, TypeInformation<Testing> testingTypeInformation, TypeInformation<PredictionValue> predictionValueTypeInformation)
EvaluateDataSetOperation
which takes a PredictOperation
to calculate a tuple
of true label value and predicted label value.
Note: We have to put the TypeInformation implicit values for Testing and PredictionValue after
the PredictOperation implicit parameter. Otherwise, if it's defined as a context bound, then
the Scala compiler does not find the implicit PredictOperation
value.
predictOperation
- testingTypeInformation
- predictionValueTypeInformation
- Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.