mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 17:52:39 +02:00
Fixed bug in sympy kernel and added sympolic.py back into utils __init__.py
This commit is contained in:
parent
c690256801
commit
fedaa5e1f1
3 changed files with 5 additions and 4 deletions
|
|
@ -345,8 +345,8 @@ class spkern(Kernpart):
|
||||||
|
|
||||||
# Code to use when only X is provided.
|
# Code to use when only X is provided.
|
||||||
self._dK_dtheta_code_X = self._dK_dtheta_code.replace('Z[', 'X[')
|
self._dK_dtheta_code_X = self._dK_dtheta_code.replace('Z[', 'X[')
|
||||||
self._dK_dX_code_X = self._dK_dX_code.replace('Z[', 'X[').replace('+= partial[', '+= 2*partial[')
|
self._dK_dX_code_X = self._dK_dX_code.replace('Z[', 'X[').replace('+= PARTIAL2(', '+= 2*PARTIAL2(')
|
||||||
self._dK_dtheta_code_X = self._dK_dtheta_code.replace('Z2(', 'X2(')
|
self._dK_dtheta_code_X = self._dK_dtheta_code_X.replace('Z2(', 'X2(')
|
||||||
self._dK_dX_code_X = self._dK_dX_code_X.replace('Z2(', 'X2(')
|
self._dK_dX_code_X = self._dK_dX_code_X.replace('Z2(', 'X2(')
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -402,7 +402,7 @@ class spkern(Kernpart):
|
||||||
self._weave_inline(self._dK_dX_code, X, target, Z, partial)
|
self._weave_inline(self._dK_dX_code, X, target, Z, partial)
|
||||||
|
|
||||||
def dKdiag_dX(self,partial,X,target):
|
def dKdiag_dX(self,partial,X,target):
|
||||||
self._weave.inline(self._dKdiag_dX_code, X, target, Z, partial)
|
self._weave_inline(self._dKdiag_dX_code, X, target, Z=None, partial=partial)
|
||||||
|
|
||||||
def compute_psi_stats(self):
|
def compute_psi_stats(self):
|
||||||
#define some normal distributions
|
#define some normal distributions
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,6 @@ import visualize
|
||||||
import decorators
|
import decorators
|
||||||
import classification
|
import classification
|
||||||
import latent_space_visualizations
|
import latent_space_visualizations
|
||||||
|
import symbolic
|
||||||
|
|
||||||
import netpbmfile
|
import netpbmfile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue