Type Parameters:
FeaturesType - Type of input features. E.g., Vector
E - Concrete Estimator type
M - 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,E extends Classifier<FeaturesType,E,M>,M extends ClassificationModel<FeaturesType,M>> extends Predictor<FeaturesType,E,M> implements ClassifierParams

Single-label binary or multiclass classification. Classes are indexed {0, 1, ..., numClasses - 1}.

See Also:
  • 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:
      rawPredictionCol in interface HasRawPredictionCol
      Returns:
      (undocumented)
    • setRawPredictionCol

      public E setRawPredictionCol(String value)