Skip to content

Commit

Permalink
add: built_from_dict method for White Kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
gehbiszumeis committed Dec 1, 2021
1 parent c84d968 commit 23aae96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GPy/kern/src/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ def to_dict(self):
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:
Expand Down

0 comments on commit 23aae96

Please sign in to comment.