initialize_feasible
- pyoptex.doe.fixed_structure.splitk_plot.init.initialize_feasible(params, complete=False, max_tries=1000)[source]
Generates a random initial design for a split^k plot design. grps specifies at each level which level-groups should be initialized. This is useful when augmenting an existing design.
Note
The resulting design matrix Y is not encoded.
Parameters
- params
Parameters The parameters of the design generation.
- completebool
Whether to use the coordinates for initialization or initialize fully randomly.
- max_triesint
The maximum number of tries to generate a feasible design.
Returns
- Ynp.array(2d)
The generated design.
- enctuple(np.array(2d), np.array(2d))
The categorical factor encoded Y and X respectively.
- params