Package org.apache.spark.ml.feature
Interface ImputerParams
- All Superinterfaces:
HasInputCol
,HasInputCols
,HasOutputCol
,HasOutputCols
,HasRelativeError
,Identifiable
,Params
,Serializable
,scala.Serializable
- All Known Implementing Classes:
Imputer
,ImputerModel
public interface ImputerParams
extends Params, HasInputCol, HasInputCols, HasOutputCol, HasOutputCols, HasRelativeError
Params for
Imputer
and ImputerModel
.-
Method Summary
Modifier and TypeMethodDescriptionReturns the input and output column names corresponding in pair.double
The placeholder for the missing values.strategy()
The imputation strategy.validateAndTransformSchema
(StructType schema) Validates and transforms the input schema.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.HasOutputCol
getOutputCol, outputCol
Methods inherited from interface org.apache.spark.ml.param.shared.HasOutputCols
getOutputCols, outputCols
Methods inherited from interface org.apache.spark.ml.param.shared.HasRelativeError
getRelativeError, relativeError
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
-
getInOutCols
Returns the input and output column names corresponding in pair. -
getMissingValue
double getMissingValue() -
getStrategy
String getStrategy() -
missingValue
DoubleParam missingValue()The placeholder for the missing values. All occurrences of missingValue will be imputed. Note that null values are always treated as missing. Default: Double.NaN- Returns:
- (undocumented)
-
strategy
The imputation strategy. Currently only "mean" and "median" are supported. If "mean", then replace missing values using the mean value of the feature. If "median", then replace missing values using the approximate median value of the feature. If "mode", then replace missing using the most frequent value of the feature. Default: mean- Returns:
- (undocumented)
-
validateAndTransformSchema
Validates and transforms the input schema.
-