csle_agents.agents.bayesian_optimization_emukit.bo.gp package
Submodules
csle_agents.agents.bayesian_optimization_emukit.bo.gp.gp_config module
- class csle_agents.agents.bayesian_optimization_emukit.bo.gp.gp_config.GPConfig(kernel_config: KernelConfig, obs_likelihood_variance: float = 1e-10)[source]
Bases:
object
DTO class representing the configuration of a Gaussian Process (GP) based on GPy
- create_gp(X: ndarray[Any, dtype[Any]], Y: ndarray[Any, dtype[Any]], input_dim: int) GPyModelWrapper [source]
Creates the GP model
- Parameters
X – the initial X values
Y – the initial Y values
input_dim – the dimension of the X-values
- Returns
the GP model (wrapped in emukit object)
- static from_dict(d: Dict[str, Any]) GPConfig [source]
Converts a dict representation to an instance
- Parameters
d – the dict to convert
- Returns
the created instance