BaseMixin
- class pyoptex.analysis.mixins.fit_mixin.BaseMixin(factors=(), Y2X=<function identityY2X>, random_effects=())[source]
- __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
BaseMixin.fit(X, y)Fits the data.
BaseMixin.preprocess_fit(X, y)Preprocesses before fitting the data.
Attributes
Checks whether the regressor has been fitted.
- factorslist(