mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
Jacobians should not be computed only for transforms
This commit is contained in:
parent
c4752c1564
commit
451f145f88
1 changed files with 1 additions and 0 deletions
|
|
@ -457,6 +457,7 @@ class Indexable(Nameable, Updateable):
|
|||
#add in jacobian derivatives if transformed
|
||||
priored_indexes = np.hstack([i for p, i in self.priors.items()])
|
||||
for c,j in self.constraints.items():
|
||||
if not isinstance(c, Transformation):continue
|
||||
for jj in j:
|
||||
if jj in priored_indexes:
|
||||
ret[jj] += c.log_jacobian_grad(x[jj])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue