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

static from_json_file(json_file_path: str) GPConfig[source]

Reads a json file and converts it to a DTO

Parameters

json_file_path – the json file path

Returns

the converted DTO

to_dict() Dict[str, Any][source]

Gets a dict representation of the object

Returns

A dict representation of the object

Module contents