From 23aae96152c9a2b530b80613044571cea8549959 Mon Sep 17 00:00:00 2001 From: gehbiszumeis <16896724+gehbiszumeis@users.noreply.github.com> Date: Wed, 1 Dec 2021 10:06:01 +0100 Subject: [PATCH] add: built_from_dict method for White Kernel --- GPy/kern/src/static.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GPy/kern/src/static.py b/GPy/kern/src/static.py index e0251337..a854fe41 100644 --- a/GPy/kern/src/static.py +++ b/GPy/kern/src/static.py @@ -68,6 +68,11 @@ class White(Static): input_dict = super(White, self)._save_to_input_dict() input_dict["class"] = "GPy.kern.White" return input_dict + + @staticmethod + def _build_from_input_dict(kernel_class, input_dict): + useGPU = input_dict.pop('useGPU', None) + return White(**input_dict) def K(self, X, X2=None): if X2 is None: