Skip to content

Commit 1aaa363

Browse files
authored
Update priors.py
1 parent d8fe458 commit 1aaa363

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gpax/priors/priors.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def normal_dist(loc: float = None, scale: float = None
7878
7979
Assign custom prior to kernel lengthscale during GP model initialization
8080
81-
>>> model = gpax.ExactGP(input_dim, kernel, lengthscale_prior_dist=gpax.utils.normal_dist(5, 1))
81+
>>> model = gpax.ExactGP(input_dim, kernel, lengthscale_prior_dist=gpax.priors.normal_dist(5, 1))
8282
8383
Train as usual
8484
@@ -99,7 +99,7 @@ def lognormal_dist(loc: float = None, scale: float = None) -> numpyro.distributi
9999
100100
Assign custom prior to kernel lengthscale during GP model initialization
101101
102-
>>> model = gpax.ExactGP(input_dim, kernel, lengthscale_prior_dist=gpax.utils.lognormal_dist(0, 0.1))
102+
>>> model = gpax.ExactGP(input_dim, kernel, lengthscale_prior_dist=gpax.priors.lognormal_dist(0, 0.1))
103103
104104
Train as usual
105105
@@ -120,7 +120,7 @@ def halfnormal_dist(scale: float = None) -> numpyro.distributions.Distribution:
120120
121121
Assign custom prior to noise variance during GP model initialization
122122
123-
>>> model = gpax.ExactGP(input_dim, kernel, noise_prior_dist=gpax.utils.halfnormal_dist(0.1))
123+
>>> model = gpax.ExactGP(input_dim, kernel, noise_prior_dist=gpax.priors.halfnormal_dist(0.1))
124124
125125
Train as usual
126126
@@ -144,7 +144,7 @@ def gamma_dist(c: float = None,
144144
145145
Assign custom prior to kernel lengthscale during GP model initialization
146146
147-
>>> model = gpax.ExactGP(input_dm, kernel, lengthscale_prior_dist=gpax.utils.gamma_dist(2, 5))
147+
>>> model = gpax.ExactGP(input_dm, kernel, lengthscale_prior_dist=gpax.priors.gamma_dist(2, 5))
148148
149149
Train as usual
150150

0 commit comments

Comments
 (0)