From abde49e7e84fbe52849fe6ccebcedc9d85564d1c Mon Sep 17 00:00:00 2001 From: Daniel Emaasit Date: Mon, 3 Dec 2018 11:20:29 -0500 Subject: [PATCH 1/2] add constant mean function for gpr --- pmlearn/__init__.py | 2 +- pmlearn/gaussian_process/gpr.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pmlearn/__init__.py b/pmlearn/__init__.py index 41a115e..98e3329 100644 --- a/pmlearn/__init__.py +++ b/pmlearn/__init__.py @@ -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', diff --git a/pmlearn/gaussian_process/gpr.py b/pmlearn/gaussian_process/gpr.py index 4f41373..0c06a03 100644 --- a/pmlearn/gaussian_process/gpr.py +++ b/pmlearn/gaussian_process/gpr.py @@ -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) @@ -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) @@ -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, From 24c8534f2e4ae815e4e7d2aa23a1ebf003b191ac Mon Sep 17 00:00:00 2001 From: Daniel Emaasit Date: Thu, 20 Jun 2019 11:50:54 -0400 Subject: [PATCH 2/2] fixed pymc3 and theano versions fixed pymc3 to version 3.4.1 and theano to version 1.0.4 --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8b22fe9..4390a4b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,10 +4,10 @@ matplotlib>=2.1.1 numpy>=1.13.1 numpydoc>=0.7.0 pandas>=0.21.1 -pymc3>=3.4.1 +pymc3==3.4.1 scikit-learn>=0.19.1 scipy>=1.0.0 seaborn>=0.8.1 six>=1.10.0 -theano>=1.0.0 +theano>=1.0.4 tqdm>=4.8.4 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy