baybe.searchspace.validation.get_transform_parameters

baybe.searchspace.validation.get_transform_parameters(parameters: Sequence[_T], df: DataFrame, allow_missing: bool, allow_extra: bool)[source]

Extract the parameters relevant for transforming a given dataframe.

Parameters:
Raises:

ValueError – If the given parameters and dataframe are not compatible under the specified values for the Boolean flags.

Return type:

list[TypeVar(_T, bound= Parameter)]

Returns:

The (subset of) parameters that need to be considered for the transformation.