tuners#
Classes#
Hyperparameter tuning using Grid Search.
Abstract base class for implementing hyperparameter tuners.
Hyperparameter tuning using Optuna.
- class prt_rl.common.tuners.GridSearchTuner(total_trials: int, maximize: bool = True, num_jobs: int = -1)[source]#
Hyperparameter tuning using Grid Search.
- Parameters:
- class prt_rl.common.tuners.HyperparameterTuner[source]#
Abstract base class for implementing hyperparameter tuners.
- abstractmethod tune(objective_fcn: Callable[[Dict], float], parameters: dict) Dict[str, Any][source]#
Tune the hyperparameters of the given objective function. :param objective_fcn: The objective function to be optimized. :type objective_fcn: Callable[[Dict], float] :param parameters: The parameter dictionary that specifies the types and ranges to optimize. :type parameters: dict
- Returns:
The best hyperparameters found during tuning.
- Return type:
Dict[str, Any]