deepcave.evaluators.ablation¶
# Ablation Paths
This module evaluates the ablation paths.
Ablation Paths is a method to analyze the importance of hyperparameters in a configuration space. Starting from a default configuration, the default configuration is iteratively changed to the incumbent configuration by changing one hyperparameter at a time, choosing the hyperparameter that leads to the largest improvement in the objective function at each step.
- ## Classes:
Ablation: Provide an evaluator of the ablation paths.
Classes
|
Provide an evaluator of the ablation paths. |
- class deepcave.evaluators.ablation.Ablation(run)[source]¶
Bases:
object
Provide an evaluator of the ablation paths.
Properties¶
- runAbstractRun
The run to analyze.
- csConfigurationSpace
The configuration space of the run.
- hp_namesList[str]
A list of the hyperparameter names.
- performancesOptional[Dict[Any, Any]]
A dictionary containing the performances for each HP.
- improvementsOptional[Dict[Any, Any]]
A dictionary containing the improvements over the respective previous step for each HP.
- objectivesOptional[Union[Objective, List[Objective]]]
The objective(s) of the run.
- default_configConfigurations
The default configuration of this configuration space. Gets changed step by step towards the incumbent configuration.
- calculate(objectives, budget=None, model=None)[source]¶
Calculate the ablation path performances and improvements.
To use standard Random Forest surrogate do not pass a model. The option to pass another model is just for testing purposes.
- Parameters:
objectives (Optional[Union[Objective, List[Objective]]]) – The objective(s) to be considered.
budget (Optional[Union[int, float]]) – The budget to be considered. If None, all budgets of the run are considered. Default is None.
model (
Optional
[Any
]) – The surrogate model to use for the prediction of the perfromances. By default None.
- Return type:
None