Interface ClassifierParams
- All Superinterfaces:
HasFeaturesCol,HasLabelCol,HasPredictionCol,HasRawPredictionCol,Identifiable,Params,PredictorParams,Serializable
- All Known Subinterfaces:
DecisionTreeClassifierParams,FMClassifierParams,GBTClassifierParams,LinearSVCParams,LogisticRegressionParams,MultilayerPerceptronParams,OneVsRestParams,ProbabilisticClassifierParams,RandomForestClassifierParams,TreeEnsembleClassifierParams
- All Known Implementing Classes:
ClassificationModel,Classifier,DecisionTreeClassificationModel,DecisionTreeClassifier,FMClassificationModel,FMClassifier,GBTClassificationModel,GBTClassifier,LinearSVC,LinearSVCModel,LogisticRegression,LogisticRegressionModel,MultilayerPerceptronClassificationModel,MultilayerPerceptronClassifier,NaiveBayes,NaiveBayesModel,OneVsRest,OneVsRestModel,ProbabilisticClassificationModel,ProbabilisticClassifier,RandomForestClassificationModel,RandomForestClassifier
(private[spark]) Params for classification.
-
Method Summary
Modifier and TypeMethodDescriptionvalidateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType) Validates and transforms the input schema with the provided param map.Methods inherited from interface org.apache.spark.ml.param.shared.HasFeaturesCol
featuresCol, getFeaturesColMethods inherited from interface org.apache.spark.ml.param.shared.HasLabelCol
getLabelCol, labelColMethods inherited from interface org.apache.spark.ml.param.shared.HasPredictionCol
getPredictionCol, predictionColMethods inherited from interface org.apache.spark.ml.param.shared.HasRawPredictionCol
getRawPredictionCol, rawPredictionColMethods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uidMethods 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
-
Method Details
-
validateAndTransformSchema
StructType validateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType) Description copied from interface:PredictorParamsValidates and transforms the input schema with the provided param map.- Specified by:
validateAndTransformSchemain interfacePredictorParams- Parameters:
schema- input schemafitting- whether this is in fittingfeaturesDataType- SQL DataType for FeaturesType. E.g.,VectorUDTfor vector features.- Returns:
- output schema
-