Skip to content

Commit

Permalink
Merge pull request #33 from pymc-learn/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Emaasit committed Dec 3, 2018
2 parents 2b49a97 + 8a71350 commit 5d72707
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pmlearn/__init__.py
Expand Up @@ -10,7 +10,7 @@
See http://pymc-learn.org for complete documentation. See http://pymc-learn.org for complete documentation.
""" """


__version__ = '0.0.1.rc2' __version__ = '0.0.1.rc3'


__all__ = ['gaussian_process', __all__ = ['gaussian_process',
'linear_model', 'linear_model',
Expand Down
6 changes: 3 additions & 3 deletions pmlearn/gaussian_process/gpr.py
Expand Up @@ -144,7 +144,7 @@ def create_model(self):
if self.prior_mean is None: if self.prior_mean is None:
mean_function = pm.gp.mean.Zero() mean_function = pm.gp.mean.Zero()
else: else:
mean_function = self.prior_mean mean_function = pm.gp.mean.Constant(c=self.prior_mean)


self.gp = pm.gp.Latent(mean_func=mean_function, self.gp = pm.gp.Latent(mean_func=mean_function,
cov_func=cov_function) cov_func=cov_function)
Expand Down Expand Up @@ -259,7 +259,7 @@ def create_model(self):
if self.prior_mean is None: if self.prior_mean is None:
mean_function = pm.gp.mean.Zero() mean_function = pm.gp.mean.Zero()
else: else:
mean_function = self.prior_mean mean_function = pm.gp.mean.Constant(c=self.prior_mean)


self.gp = pm.gp.Latent(mean_func=mean_function, self.gp = pm.gp.Latent(mean_func=mean_function,
cov_func=cov_function) cov_func=cov_function)
Expand Down Expand Up @@ -373,7 +373,7 @@ def create_model(self):
if self.prior_mean is None: if self.prior_mean is None:
mean_function = pm.gp.mean.Zero() mean_function = pm.gp.mean.Zero()
else: else:
mean_function = self.prior_mean mean_function = pm.gp.mean.Constant(c=self.prior_mean)


self.gp = pm.gp.MarginalSparse(mean_func=mean_function, self.gp = pm.gp.MarginalSparse(mean_func=mean_function,
cov_func=cov_function, cov_func=cov_function,
Expand Down

0 comments on commit 5d72707

Please sign in to comment.