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: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The `mcbackend` package consists of three parts:
15
15
### Part 1: A schema for MCMC run & chain metadata
16
16
No matter which programming language your favorite PPL is written in, the [ProtocolBuffers](https://developers.google.com/protocol-buffers/) from McBackend can be used to generate code in languages like C++, C#, Python and many more to represent commonly used metadata about MCMC runs, chains and model variables.
17
17
18
-
The definitions in [`protobufs/meta.proto`](./protobufs/meta.proto) are designed to maximize compatibility with [`ArviZ`](https://github.com/arviz-devs/arviz) objects, making it easy to transform MCMC draws stored according to the McBackend schema to `InferenceData` objects for plotting & analysis.
18
+
The definitions in [`protobufs/meta.proto`](./protobufs/meta.proto) are designed to maximize compatibility with [`ArviZ`](https://github.com/arviz-devs/arviz) objects, making it easy to transform MCMC draws stored according to the McBackend schema to `xarray.DataTree` objects for plotting & analysis.
19
19
20
20
### Part 2: A storage backend interface
21
21
The `draws` and `stats` created by MCMC sampling algorithms at runtime need to be stored _somewhere_.
@@ -83,10 +83,10 @@ chain = run.get_chains()[0]
83
83
chain.get_draws("my favorite variable")
84
84
# >>> array([ ... ])
85
85
86
-
# Convert everything to `InferenceData`
86
+
# Convert everything to an inference data structure
87
87
idata = run.to_inferencedata()
88
88
print(idata)
89
-
# >>> Inference data with groups:
89
+
# >>> DataTree:
90
90
# >>> > posterior
91
91
# >>> > sample_stats
92
92
# >>> > observed_data
@@ -113,7 +113,7 @@ Getting rid of `MultiTrace` was a [long-term goal](https://github.com/pymc-devs/
113
113
First clone the repository and set up a development environment containing the protobuf compiler.
0 commit comments