Package org.apache.spark.ml.feature
Interface TargetEncoderBase
- All Superinterfaces:
HasHandleInvalid
,HasInputCol
,HasInputCols
,HasLabelCol
,HasOutputCol
,HasOutputCols
,Identifiable
,Params
,Serializable
- All Known Implementing Classes:
TargetEncoder
,TargetEncoderModel
public interface TargetEncoderBase
extends Params, HasLabelCol, HasInputCol, HasInputCols, HasOutputCol, HasOutputCols, HasHandleInvalid
Private trait for params and common methods for TargetEncoder and TargetEncoderModel
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Param for how to handle invalid data during transform().String[]
String[]
validateSchema
(StructType schema, boolean fitting) Methods inherited from interface org.apache.spark.ml.param.shared.HasHandleInvalid
getHandleInvalid
Methods inherited from interface org.apache.spark.ml.param.shared.HasInputCol
getInputCol, inputCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasInputCols
getInputCols, inputCols
Methods inherited from interface org.apache.spark.ml.param.shared.HasLabelCol
getLabelCol, labelCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasOutputCol
getOutputCol, outputCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasOutputCols
getOutputCols, outputCols
Methods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uid
Methods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
-
Method Details
-
getSmoothing
double getSmoothing() -
getTargetType
String getTargetType() -
handleInvalid
Param for how to handle invalid data during transform(). Options are 'keep' (invalid data presented as an extra categorical feature) or 'error' (throw an error). Note that this Param is only used during transform; during fitting, invalid data will result in an error. Default: "error"- Specified by:
handleInvalid
in interfaceHasHandleInvalid
- Returns:
- (undocumented)
-
inputFeatures
String[] inputFeatures() -
outputFeatures
String[] outputFeatures() -
smoothing
DoubleParam smoothing() -
targetType
-
validateSchema
-