outlierBySdApply

systemds.operator.algorithm.outlierBySdApply(X: Matrix, colMean: Matrix, colSD: Matrix, k: float, repairMethod: int)

Builtin function for detecting and repairing outliers using standard deviation

Parameters:
  • X – Matrix X

  • colMean – Matrix X

  • k – a constant used to discern outliers k*IQR

  • isIterative – iterative repair or single repair

  • repairMethod – values: 0 = delete rows having outliers, 1 = replace outliers with zeros 2 = replace outliers as missing values

  • max_iterations – values: 0 = arbitrary number of iteraition until all outliers are removed, n = any constant defined by user

  • verbose – flag specifying if logging information should be printed

Returns:

Matrix X with no outliers