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.
|
||||
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_dtheta_code_X = self._dK_dtheta_code.replace('Z2(', 'X2(')
|
||||
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_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)
|
||||
|
||||
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):
|
||||
#define some normal distributions
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@ import visualize
|
|||
import decorators
|
||||
import classification
|
||||
import latent_space_visualizations
|
||||
import symbolic
|
||||
|
||||
import netpbmfile
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from sympy import Function, S, oo, I, cos, sin, asin, log, erf,pi,exp,sqrt,sign
|
||||
from sympy import Function, S, oo, I, cos, sin, asin, log, erf, pi, exp, sqrt, sign
|
||||
|
||||
|
||||
class ln_diff_erf(Function):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue