Skip to content

Commit 13f8e9e

Browse files
juanitorduzfonnesbeck
authored andcommitted
improve prior comment (pymc-devs#704)
1 parent e75fe0c commit 13f8e9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/gaussian_processes/GP-Births.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@
997997
"id": "0e8f5c41",
998998
"metadata": {},
999999
"source": [
1000-
"The motivation is that we have around $7.3$K data points and we want to consider the in between data points distance in the normalized (log) scale. That is why we consider the ratio `7_000 / time_str`. Note that we want to capture the long term trend, so we want to consider a length scale that is larger than the data points distance. We increase the order of magnitude by dividing by $10$. Finally, as we are setting the prior on the normalized log-scale (because that's what the GP is seeing) we take a log-transform."
1000+
"The motivation is that we have around $7.3$K data points and we want to consider the in between data points distance in the normalized scale. That is why we consider the ratio `7_000 / time_str`. Note that we want to capture the long term trend, so we want to consider a length scale that is larger than the data points distance. We increase the order of magnitude by dividing by $10$. Finally, since a {class}`~pymc.distributions.continuous.LogNormal` distribution has positive support and a common choice for length scales, we take a log-transform on the resulting quantity `700 / time_str` so ensure the mean of the prior is close to this value."
10011001
]
10021002
},
10031003
{

examples/gaussian_processes/GP-Births.myst.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ ax.set_title(
347347
);
348348
```
349349
350-
The motivation is that we have around $7.3$K data points and we want to consider the in between data points distance in the normalized (log) scale. That is why we consider the ratio `7_000 / time_str`. Note that we want to capture the long term trend, so we want to consider a length scale that is larger than the data points distance. We increase the order of magnitude by dividing by $10$. Finally, as we are setting the prior on the normalized log-scale (because that's what the GP is seeing) we take a log-transform.
350+
The motivation is that we have around $7.3$K data points and we want to consider the in between data points distance in the normalized scale. That is why we consider the ratio `7_000 / time_str`. Note that we want to capture the long term trend, so we want to consider a length scale that is larger than the data points distance. We increase the order of magnitude by dividing by $10$. Finally, since a {class}`~pymc.distributions.continuous.LogNormal` distribution has positive support and a common choice for length scales, we take a log-transform on the resulting quantity `700 / time_str` so ensure the mean of the prior is close to this value.
351351
352352
+++
353353

0 commit comments

Comments
 (0)