utils#

Functions

factorial_DOE(d[, n_CP, shuffle, seed, full])

Creates a statistically designed factorial experiment (DOE).

obsidian.experiment.utils.factorial_DOE(d: int, n_CP: int = 3, shuffle: bool = True, seed: int | None = None, full: bool = False)[source]#

Creates a statistically designed factorial experiment (DOE). Specifically for 2-level designs only. Uses the range (0,1) for low-high instead of the typical (-1,1), although (-1,1) is used for calculations during alias design

Parameters:
  • d (int) – Number of dimensions/inputs in the design.

  • n_CP (int, optional) – The number of centerpoints to include in the design, for estimating uncertainty and curvature. Default is 3.

  • shuffle (bool, optional) – Whether or not to shuffle the design or leave them in the default run order. Default is True.

  • seed (int, optional) – Randomization seed. Default is None.

  • full (bool, optional) – Whether or not to run the full DOE. Default is False, which will lead to an efficient Res4+ design.

Returns:

An (m)-by-(d) array of experiments in the (0,1) domain

Return type:

ndarray

Raises:

UnsupportedError – If the number of dimensions exceeds 12