Module parameter_types
Function convert_for_hyperparameter_tuning
convert_for_hyperparameter_tuning(params: dict[str, Any]) -> tuple[dict[str, Any], list[str]]
Converts flat hyperparameter tuing description to hierachical description. The splitter is the '#'. Example: transforms[0]#sigmoid#p -> 10 Args: params (dict[str,Any]): Hyperparameter dict Raises: NotImplementedError: Currently only transforms as list section implemented. NotImplementedError: Currently only sigmoid transforms are implemented. ValueError: Multiple transforms list element are not supported. NotImplementedError: Currently only transforms as list section implemented. Returns: dict[str,Any],used_features[list]: Hierachical dict, used features
Function convert_to_hierarchical
convert_to_hierarchical(params: dict[str, Any]) -> dict[str, Any]
Converts flat hyperparameter tuing description to hierachical description. The splitter is the '#'. Example: transforms[0]#sigmoid#p -> 10 Args: params (dict[str,Any]): Hyperparameter dict Raises: NotImplementedError: Currently only transforms as list section implemented. NotImplementedError: Currently only sigmoid transforms are implemented. ValueError: Multiple transforms list element are not supported. NotImplementedError: Currently only transforms as list section implemented. Returns: dict[str,Any]: Hierachical dict
Function get_casting
get_casting(model_type: str) -> dict
Returns type casting relevant for hyperparameters. Args: model_type (str): model type Raises: NotImplementedError: Raised if model_type not available Returns: dict: casting dict