Classifier (Spark 4.2.0 JavaDoc)
- Type Parameters:
FeaturesType- Type of input features. E.g.,VectorE- Concrete Estimator typeM- Concrete Model type
- All Implemented Interfaces:
Serializable,org.apache.spark.internal.Logging,ClassifierParams,Params,HasFeaturesCol,HasLabelCol,HasPredictionCol,HasRawPredictionCol,PredictorParams,Identifiable
- Direct Known Subclasses:
LinearSVC,ProbabilisticClassifier
public abstract class Classifier<FeaturesType,
Single-label binary or multiclass classification. Classes are indexed {0, 1, ..., numClasses - 1}.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter -
Constructor Summary
Constructors
-
Method Summary
Param for raw prediction (a.k.a.
Methods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContextMethods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, estimateMatadataSize, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
-
Constructor Details
-
Classifier
public Classifier()
-
-
Method Details
-
rawPredictionCol
public final Param<String> rawPredictionCol()
Param for raw prediction (a.k.a. confidence) column name.
- Specified by:
rawPredictionColin interfaceHasRawPredictionCol- Returns:
- (undocumented)
-
setRawPredictionCol
-