imputeByMedian

systemds.operator.algorithm.imputeByMedian(X: Matrix, mask: Matrix)

Related to [SYSTEMDS-2662] dependency function for cleaning pipelines

impute the data by median value and if the feature is categorical then by mode value

Parameters:
  • X – Data Matrix (Recoded Matrix for categorical features)

  • mask – A 0/1 row vector for identifying numeric (0) and categorical features (1)

Returns:

imputed dataset