Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add constant mean function for gpr #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add constant mean function for gpr
  • Loading branch information
Emaasit committed Dec 3, 2018
commit abde49e7e84fbe52849fe6ccebcedc9d85564d1c
2 changes: 1 addition & 1 deletion 2 pmlearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
See http://pymc-learn.org for complete documentation.
"""

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

__all__ = ['gaussian_process',
'linear_model',
Expand Down
6 changes: 3 additions & 3 deletions 6 pmlearn/gaussian_process/gpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_model(self):
if self.prior_mean is None:
mean_function = pm.gp.mean.Zero()
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,
cov_func=cov_function)
Expand Down Expand Up @@ -259,7 +259,7 @@ def create_model(self):
if self.prior_mean is None:
mean_function = pm.gp.mean.Zero()
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,
cov_func=cov_function)
Expand Down Expand Up @@ -373,7 +373,7 @@ def create_model(self):
if self.prior_mean is None:
mean_function = pm.gp.mean.Zero()
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,
cov_func=cov_function,
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.