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:
- parameters ( - Sequence[- TypeVar(- _T, bound=- Parameter)]) – The parameters to be considered for transformation (provided they have match in the given dataframe).
- df ( - DataFrame) – See- baybe.searchspace.core.SearchSpace.transform().
- allow_missing ( - bool) – See- baybe.searchspace.core.SearchSpace.transform().
- allow_extra ( - bool) – See- baybe.searchspace.core.SearchSpace.transform().
 
- Raises:
- ValueError – If the given parameters and dataframe are not compatible under the specified values for the Boolean flags. 
- Return type:
- Returns:
- The (subset of) parameters that need to be considered for the transformation.