encode_input¶
- encode_input(dataset: npt.NDArray[np.float64], variables: Collection[Variable]) npt.NDArray[np.float64] ¶
Encode the input dataset using the provided variable encodings.
- Parameters:
dataset (npt.NDArray[np.float64]) – The input dataset to encode.
variables (Collection[Variable]) – The variables corresponding to the input dataset.
- Raises:
ValueError – If the input dataset is not 1D or 2D.
ValueError – If the number of variables in the input dataset does not match the number of variables in the black-box function.
- Returns:
The encoded input dataset.
- Return type:
npt.NDArray[np.float64]