From 012b71a42a90f2e136e3605f2c7cf186f137a646 Mon Sep 17 00:00:00 2001 From: Contramundum Date: Wed, 30 Aug 2023 12:56:50 +0900 Subject: [PATCH] format --- optuna_dashboard/preferential/samplers/gp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/optuna_dashboard/preferential/samplers/gp.py b/optuna_dashboard/preferential/samplers/gp.py index aec4c22a..09b64120 100644 --- a/optuna_dashboard/preferential/samplers/gp.py +++ b/optuna_dashboard/preferential/samplers/gp.py @@ -161,7 +161,10 @@ class _SampledGP(botorch.models.model.Model): class _PreferentialGP: def _kernel_func( - self, x1: torch.Tensor, x2: torch.Tensor, lengthscale: torch.Tensor, + self, + x1: torch.Tensor, + x2: torch.Tensor, + lengthscale: torch.Tensor, ) -> torch.Tensor: # Matern 3/2 kernel d = math.sqrt(3) * torch.cdist(x1 / lengthscale, x2 / lengthscale)