Package org.apache.spark.ml.feature
Interface ImputerParams
- All Superinterfaces:
- HasInputCol,- HasInputCols,- HasOutputCol,- HasOutputCols,- HasRelativeError,- Identifiable,- Params,- Serializable
- All Known Implementing Classes:
- Imputer,- ImputerModel
public interface ImputerParams
extends Params, HasInputCol, HasInputCols, HasOutputCol, HasOutputCols, HasRelativeError
Params for 
Imputer and ImputerModel.- 
Method SummaryModifier and TypeMethodDescriptionReturns the input and output column names corresponding in pair.doubleThe 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.HasInputColgetInputCol, inputColMethods inherited from interface org.apache.spark.ml.param.shared.HasInputColsgetInputCols, inputColsMethods inherited from interface org.apache.spark.ml.param.shared.HasOutputColgetOutputCol, outputColMethods inherited from interface org.apache.spark.ml.param.shared.HasOutputColsgetOutputCols, outputColsMethods inherited from interface org.apache.spark.ml.param.shared.HasRelativeErrorgetRelativeError, relativeErrorMethods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.ml.param.Paramsclear, 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- 
getInOutColsReturns the input and output column names corresponding in pair.
- 
getMissingValuedouble getMissingValue()
- 
getStrategyString getStrategy()
- 
missingValueDoubleParam 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)
 
- 
strategyThe 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)
 
- 
validateAndTransformSchemaValidates and transforms the input schema.
 
-