You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1075,6 +1078,7 @@ And isn't this beautiful?? Now go on, and HSGP-on!
1075
1078
## Authors
1076
1079
1077
1080
* Created by [Bill Engels](https://github.com/bwengals), [Alexandre Andorra](https://github.com/AlexAndorra) and [Maxim Kochurov](https://github.com/ferrine) in 2024 ([pymc-examples#668](https://github.com/pymc-devs/pymc-examples/pull/668))
1081
+
* Use `pz.maxent` instead of `pm.find_constrained_prior`, and add random seed. [Osvaldo Martin](https://aloctavodia.github.io/). August 2024
Copy file name to clipboardExpand all lines: examples/gaussian_processes/HSGP-Basic.myst.md
+21-38Lines changed: 21 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ jupytext:
5
5
format_name: myst
6
6
format_version: 0.13
7
7
kernelspec:
8
-
display_name: pymc-examples
8
+
display_name: preliz
9
9
language: python
10
-
name: pymc-examples
10
+
name: python3
11
11
---
12
12
13
13
(hsgp)=
@@ -56,6 +56,7 @@ We'll use simulated data to motivate an overview of the usage of {class}`~pymc.g
56
56
import arviz as az
57
57
import matplotlib.pyplot as plt
58
58
import numpy as np
59
+
import preliz as pz
59
60
import pymc as pm
60
61
import pytensor.tensor as pt
61
62
@@ -114,42 +115,21 @@ ax.grid(False)
114
115
115
116
+++
116
117
117
-
First we use `pm.find_constrained_prior` to choose our prior for the lengthscale parameter. We use a Lognormal to penalize very small lengthscales while having a heavy right tail. When the signal from the GP is high relative to the noise, we are able to use more informative priors.
118
+
First we use `pz.maxent` to choose our prior for the lengthscale parameter, maxent return the maximum entropy prior with the specified `mass` within the interval [`lower`, `upper`].
118
119
119
-
```{code-cell} ipython3
120
-
ell_dist = pm.Lognormal
120
+
We use a Lognormal to penalize very small lengthscales while having a heavy right tail. When the signal from the GP is high relative to the noise, we are able to use more informative priors.
@@ -704,6 +686,7 @@ Sampling diagnostics all look good, and we can see that the underlying GP was in
704
686
## Authors
705
687
706
688
* Created by [Bill Engels](https://github.com/bwengals) and [Alexandre Andorra](https://github.com/AlexAndorra) in 2024 ([pymc-examples#647](https://github.com/pymc-devs/pymc-examples/pull/647))
689
+
* Use `pz.maxent` instead of `pm.find_constrained_prior`, and add random seed. [Osvaldo Martin](https://aloctavodia.github.io/). August 2024
0 commit comments