encode_design
- pyoptex.utils.design.encode_design(Y, effect_types, coords=None)[source]
Encode the design according to the effect types. Each categorical factor is encoded using effect-encoding, unless the coordinates are specified.
It is the inverse of
decode_designParameters
- Ynp.array(2d)
The current design matrix.
- effect_typesnp.array(1d)
An array indicating whether the effect is continuous (=1) or categorical (with >1 levels).
- coordsNone or
numba.typed.List(np.array(2d)) The possible coordinates for each factor.
Returns
- Yencnp.array(2d)
The encoded design-matrix