csle_agents.agents.bayesian_optimization_emukit.bo package
Subpackages
- csle_agents.agents.bayesian_optimization_emukit.bo.acquisition package
- Submodules
- csle_agents.agents.bayesian_optimization_emukit.bo.acquisition.acquisition_function_type module
AcquisitionFunctionType
AcquisitionFunctionType.CAUSAL_EXPECTED_IMPROVEMENT
AcquisitionFunctionType.ENTROPY_SEARCH
AcquisitionFunctionType.EXPECTED_IMPROVEMENT
AcquisitionFunctionType.MAX_VALUE_ENTROPY_SEARCH
AcquisitionFunctionType.MUMBO
AcquisitionFunctionType.NEGATIVE_LOWER_CONFIDENCE_BOUND
AcquisitionFunctionType.PROBABILITY_OF_FEASIBILITY
AcquisitionFunctionType.PROBABILITY_OF_IMPROVEMENT
- csle_agents.agents.bayesian_optimization_emukit.bo.acquisition.acquisition_optimizer_type module
- Module contents
- csle_agents.agents.bayesian_optimization_emukit.bo.gp package
- csle_agents.agents.bayesian_optimization_emukit.bo.kernel package
Submodules
csle_agents.agents.bayesian_optimization_emukit.bo.bo_config module
- class csle_agents.agents.bayesian_optimization_emukit.bo.bo_config.BOConfig(X_init: ndarray[Any, dtype[Any]], Y_init: ndarray[Any, dtype[Any]], input_space: ParameterSpace, evaluation_budget: int, gp_config: GPConfig, acquisition_function_type: AcquisitionFunctionType, acquisition_optimizer_type: AcquisitionOptimizerType, objective_type: ObjectiveType, beta: float = 1)[source]
Bases:
object
DTO representing the configuration of a Bayesian Optimization execution
- static from_dict(d: Dict[str, Any]) BOConfig [source]
Converts a dict representation to an instance
- Parameters
d – the dict to convert
- Returns
the created instance
- static from_json_file(json_file_path: str) BOConfig [source]
Reads a json file and converts it to a DTO
- Parameters
json_file_path – the json file path
- Returns
the converted DTO
- get_acquisition_function(surrogate_model: GPyModelWrapper) Acquisition [source]
Gets the acquisition function for the configuration
- Parameters
surrogate_model – the surrogate model to use for the acquisition
- Returns
the acquisition function (from the emukit library)
csle_agents.agents.bayesian_optimization_emukit.bo.bo_results module
- class csle_agents.agents.bayesian_optimization_emukit.bo.bo_results.BOResults(remaining_budget: float)[source]
Bases:
object
DTO representing the state and results of an execution of Bayesian Optimization
- static from_dict(d: Dict[str, Any]) BOResults [source]
Converts a dict representation to an instance
- Parameters
d – the dict to convert
- Returns
the created instance
- static from_json_file(json_file_path: str) BOResults [source]
Reads a json file and converts it into a dto
- Parameters
json_file_path – the json file path to load the DTO from
- Returns
the loaded DTO
- static from_json_str(json_str: str) BOResults [source]
Converts json string into a DTO
- Parameters
json_str – the json string representation
- Returns
the DTO instance