mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
fix: pkg: minor fixes (imports and empty spaces)
This commit is contained in:
parent
2d9f0f7b78
commit
0007eccd79
2 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
import sys
|
import sys
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ...core.parameterization.parameterized import Parameterized
|
from ...core.parameterization.parameterized import Parameterized
|
||||||
from paramz.core.observable_array import ObsAr
|
|
||||||
from paramz.caching import Cache_this
|
from paramz.caching import Cache_this
|
||||||
from .kernel_slice_operations import KernCallsViaSlicerMeta
|
from .kernel_slice_operations import KernCallsViaSlicerMeta
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ class RBF(Stationary):
|
||||||
|
|
||||||
def dK2_drdr_diag(self):
|
def dK2_drdr_diag(self):
|
||||||
return -self.variance # as the diagonal of r is always filled with zeros
|
return -self.variance # as the diagonal of r is always filled with zeros
|
||||||
|
|
||||||
def __getstate__(self):
|
def __getstate__(self):
|
||||||
dc = super(RBF, self).__getstate__()
|
dc = super(RBF, self).__getstate__()
|
||||||
if self.useGPU:
|
if self.useGPU:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue