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
Copy file name to clipboardExpand all lines: examples/gaussian_processes/GP-TProcess.myst.md
+58-35
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,16 @@ kernelspec:
10
10
name: python3
11
11
---
12
12
13
+
(GP-TProcess)=
13
14
# Student-t Process
14
15
15
-
PyMC3 also includes T-process priors. They are a generalization of a Gaussian process prior to the multivariate Student's T distribution. The usage is identical to that of `gp.Latent`, except they require a degrees of freedom parameter when they are specified in the model. For more information, see chapter 9 of [Rasmussen+Williams](http://www.gaussianprocess.org/gpml/), and [Shah et al.](https://arxiv.org/abs/1402.4306).
PyMC also includes T-process priors. They are a generalization of a Gaussian process prior to the multivariate Student's T distribution. The usage is identical to that of `gp.Latent`, except they require a degrees of freedom parameter when they are specified in the model. For more information, see chapter 9 of [Rasmussen+Williams](http://www.gaussianprocess.org/gpml/), and [Shah et al.](https://arxiv.org/abs/1402.4306).
16
23
17
24
Note that T processes aren't additive in the same way as GPs, so addition of `TP` objects are not supported.
18
25
@@ -23,10 +30,13 @@ Note that T processes aren't additive in the same way as GPs, so addition of `TP
23
30
The following code draws samples from a T process prior with 3 degrees of freedom and a Gaussian process, both with the same covariance matrix.
24
31
25
32
```{code-cell} ipython3
33
+
import arviz as az
26
34
import matplotlib.pyplot as plt
27
35
import numpy as np
28
-
import pymc3 as pm
29
-
import theano.tensor as tt
36
+
import pymc as pm
37
+
import pytensor.tensor as pt
38
+
39
+
from pymc.gp.util import plot_gp_dist
30
40
31
41
%matplotlib inline
32
42
```
@@ -39,33 +49,34 @@ n = 100 # The number of data points
39
49
X = np.linspace(0, 10, n)[:, None] # The inputs to the GP, they must be arranged as a column vector
40
50
41
51
# Define the true covariance function and its parameters
0 commit comments