Rbf 核
smac.model.gaussian_process.kernels.rbf_kernel #
RBFKernel #
RBFKernel(
length_scale: float | tuple[float, ...] | ndarray = 1.0,
length_scale_bounds: tuple[float, float]
| list[tuple[float, float]]
| ndarray = (1e-05, 100000.0),
operate_on: ndarray | None = None,
has_conditions: bool = False,
prior: AbstractPrior | None = None,
)
基类: AbstractKernel
, RBF
RBF 核实现。
源代码位于 smac/model/gaussian_process/kernels/rbf_kernel.py
__call__ #
__call__(
X: ndarray,
Y: ndarray | None = None,
eval_gradient: bool = False,
active: ndarray | None = None,
) -> ndarray | tuple[ndarray, ndarray]
调用核函数。内部调用 self._call
,该方法必须由子类指定。
源代码位于 smac/model/gaussian_process/kernels/base_kernels.py
get_params #
获取此核函数的参数。
参数#
deep : bool,默认为 True 如果为 True,将返回此估计器和包含的作为估计器的子对象的参数。
返回#
params : dict[str, Any] 参数名称映射到其值。