mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-14 15:25:15 +02:00
add: built_from_dict method for White Kernel
This commit is contained in:
parent
c84d968f2a
commit
23aae96152
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue