quantile_outliers

QuantileOutliersTransformer.quantile_outliers(errors, threshold, stat=<scipy.stats._continuous_distns.norm_gen object>)[source]

Quantile-quantile outlier detector based on the desired distribution and a threshold value. This is usually performed on the regression errors.

Parameters

errorsnp.ndarray(1d)

The data which should follow the specified distribution.

thresholdfloat

The threshold to mark outliers.

statscipy.stats.rv_continuous

A scipy distribution object.

Returns

outliersnp.ndarray(1d)

A boolean array marking which elements are considered outliers.