-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rerun quickstart and working with inferencedata nbs * doc fixes add dataarray and dataset as type aliases fix css for homepage * add encoding arg for reading html_repr's css * improve psislw docstring * add docstring to smooth_data * remove show=True in tests * update changelog and bump version * make smooth data public api * extend numpydoc type ignores
- Loading branch information
1 parent
27b8a49
commit 3713edf
Showing
16 changed files
with
9,194 additions
and
5,544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
"autocorr", | ||
"autocov", | ||
"make_ufunc", | ||
"smooth_data", | ||
"wrap_xarray_ufunc", | ||
"reloo", | ||
"_calculate_ics", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ Stats utils | |
autocov | ||
autocorr | ||
make_ufunc | ||
smooth_data | ||
wrap_xarray_ufunc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
10,735 changes: 8,371 additions & 2,364 deletions
10,735
doc/source/getting_started/WorkingWithInferenceData.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"J": 8, | ||
"y": [28, 8, -3, 7, -1, 1, 18, 12], | ||
"sigma": [15, 10, 16, 11, 9, 11, 10, 18] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
data { | ||
int<lower=0> J; | ||
array[J] real y; | ||
array[J] real<lower=0> sigma; | ||
} | ||
|
||
parameters { | ||
real mu; | ||
real<lower=0> tau; | ||
array[J] real theta; | ||
} | ||
|
||
model { | ||
mu ~ normal(0, 5); | ||
tau ~ cauchy(0, 5); | ||
theta ~ normal(mu, tau); | ||
y ~ normal(theta, sigma); | ||
} | ||
generated quantities { | ||
array[J] real log_lik; | ||
array[J] real y_hat; | ||
for (j in 1:J) { | ||
log_lik[j] = normal_lpdf(y[j] | theta[j], sigma[j]); | ||
y_hat[j] = normal_rng(theta[j], sigma[j]); | ||
} | ||
} |