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 Summary
Modifier 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.HasInputCol
getInputCol, inputColMethods inherited from interface org.apache.spark.ml.param.shared.HasInputCols
getInputCols, inputColsMethods inherited from interface org.apache.spark.ml.param.shared.HasOutputCol
getOutputCol, outputColMethods inherited from interface org.apache.spark.ml.param.shared.HasOutputCols
getOutputCols, outputColsMethods inherited from interface org.apache.spark.ml.param.shared.HasRelativeError
getRelativeError, relativeErrorMethods 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
-
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.
-