The placeholder for the missing values.
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
Imputation strategy.
Imputation strategy. Available options are ["mean", "median"].
The imputation strategy.
The imputation strategy. 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. Default: mean
Validates and transforms the input schema.
Validates and transforms the input schema.
:: Experimental :: Imputation estimator for completing missing values, either using the mean or the median of the column in which the missing values are located. The input column should be of DoubleType or FloatType. Currently Imputer does not support categorical features yet (SPARK-15041) and possibly creates incorrect values for a categorical feature.
Note that the mean/median value is computed after filtering out missing values. All Null values in the input column are treated as missing, and so are also imputed.