Skip to content

Commit c3cdd2c

Browse files
committed
use the actual prior name provided
1 parent 44cfbb9 commit c3cdd2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/gp/gp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ def _build_prior(self, name, X, Xu, **kwargs):
299299
Kfu = self.cov_func(X, Xu) # (n, m)
300300
f_ = mu + tt.dot(Kfu, Kuuiu) # (n, m) @ (m,) = (n,)
301301
if self.approx == 'DTC':
302-
f = pm.Deterministic("f", f_)
302+
f = pm.Deterministic(name, f_)
303303
elif self.approx == 'FITC':
304304
Qff_diag = project_inverse(Kfu, Luu, diag=True)
305305
Kff_diag = self.cov_func.diag(X)
306306
# MvNormal with diagonal cov is Normal with sd=cov**0.5
307307
sd = tt.sqrt(tt.clip(Kff_diag - Qff_diag, 0, np.inf))
308-
f = pm.Normal("f", mu=f_, sd=sd, shape=shape)
308+
f = pm.Normal(name, mu=f_, sd=sd, shape=shape)
309309
return f
310310

311311
def prior(self, name, X, Xu, **kwargs):

0 commit comments

Comments
 (0)