OutlierTransformerMixin
- class pyoptex.analysis.mixins.fit_mixin.OutlierTransformerMixin(factors=(), Y2X=<function identityY2X>, random_effects=())[source]
Very similar to
TransformerMixin, but focused on outlier detection and removal during training. The fit_transform function should remove the outliers from the data.- __init__(factors=(), Y2X=<function identityY2X>, random_effects=())[source]
Creates the regressor
Parameters
- factorslist(
Factor) A list of factors to be used during fitting. It contains the categorical encoding, continuous normalization, etc.
- Y2Xfunc(Y)
The function to transform a design matrix Y to a model matrix X.
- random_effectslist(str)
The names of any random effect columns. Every random effect is interpreted as a string column and encoded using effect encoding.
Methods
Fits the data.
Fit the transformer to the data and apply the transformation.
Preprocesses before fitting the data.
OutlierTransformerMixin.set_output(*[, ...])Set output container.
Ignore any transformation as the outlier detection only applies during training.
Attributes
Checks whether the regressor has been fitted.
- factorslist(