Skip to content

Commit 67ef3fc

Browse files
committed
add comment first basis fuctions
1 parent 08f4bc8 commit 67ef3fc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

examples/gaussian_processes/GP-Births.ipynb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,16 @@
14641464
"pm.model_to_graphviz(model=model)"
14651465
]
14661466
},
1467+
{
1468+
"cell_type": "markdown",
1469+
"id": "6e14cc26",
1470+
"metadata": {},
1471+
"source": [
1472+
"```{attention}\n",
1473+
"The first two basis vectors for the (periodic) {class}`~pymc.gp.HSGP` sometimes come out to be either all ones or all zeros. This is a problem because it brings an extra intercept in the model and this can hurt sampling. To avoid this, you can use the `drop_first` argument in the {class}`~pymc.gp.HSGP` class.\n",
1474+
"```"
1475+
]
1476+
},
14671477
{
14681478
"cell_type": "markdown",
14691479
"id": "f1f9d934",

examples/gaussian_processes/GP-Births.myst.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,12 @@ with pm.Model(coords=coords) as model:
429429
pm.model_to_graphviz(model=model)
430430
```
431431

432+
```{attention}
433+
The first two basis vectors for the (periodic) {class}`~pymc.gp.HSGP` sometimes come out to be either all ones or all zeros. This is a problem because it brings an extra intercept in the model and this can hurt sampling. To avoid this, you can use the `drop_first` argument in the {class}`~pymc.gp.HSGP` class.
434+
```
435+
436+
+++
437+
432438
## Prior Predictive Checks
433439

434440
We run the model with the prior predictive checks to see if the model is able to generate data in a similar scale as the data.

0 commit comments

Comments
 (0)