This function detects outliers/anomalies in the data. If the
replace_outlier
argument is set to TRUE
, then the outliers are removed
and imputed using the provided imputation methods.
detect_outliers(dt, replace_outlier, imp_methods)
The outliers found in the data. If the outliers are replaced, then the imputation errors are also returned.
A data.table.
Boolean, defaults to TRUE
. Specify if the outliers
are to be removed and imputed.
The imputation methods to be used.