public abstract class ProbabilisticClassificationModel<FeaturesType,M extends ProbabilisticClassificationModel<FeaturesType,M>> extends ClassificationModel<FeaturesType,M> implements ProbabilisticClassifierParams
Model produced by a ProbabilisticClassifier.
Classes are indexed {0, 1, ..., numClasses - 1}.
| Constructor and Description |
|---|
ProbabilisticClassificationModel() |
| Modifier and Type | Method and Description |
|---|---|
M |
setProbabilityCol(String value) |
DataFrame |
transform(DataFrame dataset,
ParamMap paramMap)
Transforms dataset by reading from
featuresCol, and appending new columns as specified by
parameters:
- predicted labels as predictionCol of type Double
- raw predictions (confidences) as rawPredictionCol of type Vector
- probability of each class as probabilityCol of type Vector. |
numClasses, setRawPredictionCol, transformColumnsImplsetFeaturesCol, setPredictionCol, transformSchemafittingParamMap, parenttransform, transformequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateAndTransformSchemagetLabelCol, labelColfeaturesCol, getFeaturesColgetPredictionCol, predictionColaddOutputColumn, checkInputColumn, explainParams, get, getParam, isSet, paramMap, params, set, set, validate, validateuidgetRawPredictionCol, rawPredictionColgetProbabilityCol, probabilityColinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic M setProbabilityCol(String value)
public DataFrame transform(DataFrame dataset, ParamMap paramMap)
featuresCol, and appending new columns as specified by
parameters:
- predicted labels as predictionCol of type Double
- raw predictions (confidences) as rawPredictionCol of type Vector
- probability of each class as probabilityCol of type Vector.
transform in class ClassificationModel<FeaturesType,M extends ProbabilisticClassificationModel<FeaturesType,M>>dataset - input datasetparamMap - additional parameters, overwrite embedded params