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

Commit 5d72707

Browse filesBrowse files
authored
Merge pull request #33 from pymc-learn/dev
Dev
2 parents 2b49a97 + 8a71350 commit 5d72707
Copy full SHA for 5d72707

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎pmlearn/__init__.py

Copy file name to clipboardExpand all lines: pmlearn/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
See http://pymc-learn.org for complete documentation.
1111
"""
1212

13-
__version__ = '0.0.1.rc2'
13+
__version__ = '0.0.1.rc3'
1414

1515
__all__ = ['gaussian_process',
1616
'linear_model',

‎pmlearn/gaussian_process/gpr.py

Copy file name to clipboardExpand all lines: pmlearn/gaussian_process/gpr.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def create_model(self):
144144
if self.prior_mean is None:
145145
mean_function = pm.gp.mean.Zero()
146146
else:
147-
mean_function = self.prior_mean
147+
mean_function = pm.gp.mean.Constant(c=self.prior_mean)
148148

149149
self.gp = pm.gp.Latent(mean_func=mean_function,
150150
cov_func=cov_function)
@@ -259,7 +259,7 @@ def create_model(self):
259259
if self.prior_mean is None:
260260
mean_function = pm.gp.mean.Zero()
261261
else:
262-
mean_function = self.prior_mean
262+
mean_function = pm.gp.mean.Constant(c=self.prior_mean)
263263

264264
self.gp = pm.gp.Latent(mean_func=mean_function,
265265
cov_func=cov_function)
@@ -373,7 +373,7 @@ def create_model(self):
373373
if self.prior_mean is None:
374374
mean_function = pm.gp.mean.Zero()
375375
else:
376-
mean_function = self.prior_mean
376+
mean_function = pm.gp.mean.Constant(c=self.prior_mean)
377377

378378
self.gp = pm.gp.MarginalSparse(mean_func=mean_function,
379379
cov_func=cov_function,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.