cost_fn

pyoptex.doe.cost_optimal.cost.cost_fn(*args, **kwargs)[source]

Parameters

ffunc(Y, params) or func(Y)

The cost function to be wrapped.

factorslist(Factor)

A list of factors for the design.

denormalizebool

Whether to denormalize (and decode) the data before passing it to f.

decodedbool

Whether to only decode, but not denormalize the data before passing it to f.

contains_paramsbool

Whether the cost function requires the Parameters. This prevents numba compilation.

Returns

fnfunc(Y, params)

The decorated function