Skip to content

Commit 27be3da

Browse files
authored
Merge pull request #3065 from bwengals/gp-kron-fixes
GPs with Kronecker structure
2 parents 28ab6d9 + 0b64e98 commit 27be3da

File tree

13 files changed

+782
-73
lines changed

13 files changed

+782
-73
lines changed

docs/source/api/distributions/multivariate.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Multivariate
77

88
MvNormal
99
MatrixNormal
10+
KroneckerNormal
1011
MvStudentT
1112
Wishart
1213
LKJCholeskyCov

docs/source/api/gp.rst

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,10 @@
1-
GP Implementations
1+
Gaussian Processes
22
------------------
33

44
.. currentmodule:: pymc3.gp.gp
5-
.. automodule:: pymc3.gp.gp
6-
:members:
75

8-
Mean Functions
9-
--------------
6+
.. toctree::
107

11-
.. currentmodule:: pymc3.gp.mean
12-
.. autosummary::
13-
14-
Zero
15-
Constant
16-
Linear
17-
18-
.. automodule:: pymc3.gp.mean
19-
:members:
20-
21-
Covariance Functions
22-
--------------------
23-
24-
.. currentmodule:: pymc3.gp.cov
25-
.. autosummary::
26-
27-
Constant
28-
WhiteNoise
29-
ExpQuad
30-
RatQuad
31-
Matern32
32-
Matern52
33-
Exponential
34-
Cosine
35-
Periodic
36-
Linear
37-
Polynomial
38-
WarpedInput
39-
Gibbs
40-
41-
.. automodule:: pymc3.gp.cov
42-
:members:
8+
gp/implementations
9+
gp/mean
10+
gp/cov

docs/source/api/gp/cov.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
********************
2+
Covariance Functions
3+
********************
4+
5+
.. currentmodule:: pymc3.gp.cov
6+
.. autosummary::
7+
Constant
8+
WhiteNoise
9+
ExpQuad
10+
RatQuad
11+
Matern32
12+
Matern52
13+
Exponential
14+
Cosine
15+
Periodic
16+
Linear
17+
Polynomial
18+
WarpedInput
19+
Gibbs
20+
Kron
21+
Coregion
22+
23+
.. automodule:: pymc3.gp.cov
24+
:members:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
***************
2+
Implementations
3+
***************
4+
5+
.. currentmodule:: pymc3.gp.gp
6+
.. autosummary::
7+
Latent
8+
Marginal
9+
LatentKron
10+
MarginalKron
11+
MarginalSparse
12+
TP
13+
14+
.. automodule:: pymc3.gp.gp
15+
:members:

docs/source/api/gp/mean.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**************
2+
Mean Functions
3+
**************
4+
5+
.. currentmodule:: pymc3.gp.mean
6+
.. autosummary::
7+
8+
Zero
9+
Constant
10+
Linear
11+
12+
.. automodule:: pymc3.gp.mean
13+
:members:

docs/source/examples.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Gaussian Processes
6363
notebooks/GP-Marginal.ipynb
6464
notebooks/GP-Latent.ipynb
6565
notebooks/GP-SparseApprox.ipynb
66+
notebooks/GP-Kron.ipynb
6667
notebooks/GP-TProcess.ipynb
6768
notebooks/GP-MaunaLoa.ipynb
6869
notebooks/GP-slice-sampling.ipynb

docs/source/notebooks/GP-Kron.ipynb

Lines changed: 468 additions & 0 deletions
Large diffs are not rendered by default.

docs/source/notebooks/GP-Marginal.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529
"metadata": {
530530
"anaconda-cloud": {},
531531
"kernelspec": {
532-
"display_name": "Python 3",
532+
"display_name": "Python [default]",
533533
"language": "python",
534534
"name": "python3"
535535
},
@@ -543,7 +543,7 @@
543543
"name": "python",
544544
"nbconvert_exporter": "python",
545545
"pygments_lexer": "ipython3",
546-
"version": "3.5.1"
546+
"version": "3.5.4"
547547
}
548548
},
549549
"nbformat": 4,

pymc3/gp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from . import cov
22
from . import mean
33
from . import util
4-
from .gp import Latent, Marginal, MarginalSparse, TP, MarginalKron
4+
from .gp import Latent, Marginal, MarginalSparse, TP, LatentKron, MarginalKron

pymc3/gp/cov.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
'Periodic',
1717
'WarpedInput',
1818
'Gibbs',
19+
'Coregion',
1920
'ScaledCov',
20-
'Coregion']
21+
'Kron']
2122

2223

2324
class Covariance(object):
@@ -156,6 +157,9 @@ class Kron(Covariance):
156157
concatenated columns of its components.
157158
158159
Factors must be covariances or their combinations, arrays will not work.
160+
161+
Generally utilized by the `gp.MarginalKron` and gp.LatentKron`
162+
implementations.
159163
"""
160164

161165
def __init__(self, factor_list):

0 commit comments

Comments
 (0)