mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
[SSGPLVM] add plotting class
This commit is contained in:
parent
01860455af
commit
5cfc250ad1
9 changed files with 96 additions and 10 deletions
|
|
@ -13,7 +13,7 @@ class Kern(Parameterized):
|
|||
#===========================================================================
|
||||
# This adds input slice support. The rather ugly code for slicing can be
|
||||
# found in kernel_slice_operations
|
||||
__metaclass__ = KernCallsViaSlicerMeta
|
||||
#__metaclass__ = KernCallsViaSlicerMeta
|
||||
#===========================================================================
|
||||
_support_GPU=False
|
||||
def __init__(self, input_dim, active_dims, name, useGPU=False, *a, **kw):
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import numpy as np
|
|||
from GPy.util.caching import Cache_this
|
||||
|
||||
from ....util import gpu_init
|
||||
assert gpu_init.initSuccess
|
||||
|
||||
try:
|
||||
import pycuda.gpuarray as gpuarray
|
||||
|
|
@ -257,6 +256,7 @@ except:
|
|||
|
||||
class PSICOMP_SSRBF(object):
|
||||
def __init__(self):
|
||||
assert gpu_init.initSuccess, "GPU initialization failed!"
|
||||
self.cublas_handle = gpu_init.cublas_handle
|
||||
self.gpuCache = None
|
||||
self.gpuCacheAll = None
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ from ...core.parameterization import variational
|
|||
from psi_comp import ssrbf_psi_comp
|
||||
from psi_comp.ssrbf_psi_gpucomp import PSICOMP_SSRBF
|
||||
|
||||
import pycuda.gpuarray as gpuarray
|
||||
import pycuda.autoinit
|
||||
|
||||
class RBF(Stationary):
|
||||
"""
|
||||
Radial Basis Function kernel, aka squared-exponential, exponentiated quadratic or Gaussian kernel:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue