captest.filters.Outliers
- class captest.filters.Outliers(*, envelope_kwargs, custom_name, name)
Remove statistical outliers in the (poa, power) plane via sklearn EllipticEnvelope.
Reads
capdata.floc[["poa", "power"]](the regression-mapped columns), drops any NaN rows by delegating tocapdata.filter_missing(which records its own step), fitssklearn.covariance.EllipticEnvelopeon the cleaned 2-D matrix, and keeps the rows whosepredictis 1.envelope_kwargscarries user overrides forEllipticEnvelope; defaults (support_fraction=0.9,contamination=0.04) are merged in at run time. The merged dict is exposed onenvelope_kwargs_resolvedfor display.- __init__(**params)
Methods
__init__(**params)from_config(config)Build an instance from a
to_config()dict.run(capdata)Execute the step, record runtime state, and append self to filters.
to_config()Serialize this step to a config dict (every param, defaults included; the param-system
nameis omitted).Attributes
args_reprRender
EllipticEnvelope(k=v, ...)using the resolved kwargs.custom_nameenvelope_kwargsexplanationHuman-readable description of the step's effect (read after run()).
nameparam