@@ -302,8 +302,7 @@ InferenceData with groups:
302302 > posterior
303303
304304julia> idata_cat1.posterior
305- ╭─────────────────╮
306- │ 100×8×3 Dataset │
305+ ┌ 100×8×3 Dataset ┐
307306├─────────────────┴──────────────────────────────────── dims ┐
308307 ↓ draw ,
309308 → chain,
@@ -313,7 +312,7 @@ julia> idata_cat1.posterior
313312 :b eltype: Float64 dims: draw, chain size: 100×8
314313├────────────────────────────────────────────────── metadata ┤
315314 Dict{String, Any} with 1 entry:
316- "created_at" => "2024-03-11T14:10:48.434 "
315+ "created_at" => "2025-02-04T10:49:16.704 "
317316```
318317
319318Alternatively, we can concatenate along a new `run` dimension, which will be created.
@@ -324,8 +323,7 @@ InferenceData with groups:
324323 > posterior
325324
326325julia> idata_cat2.posterior
327- ╭───────────────────╮
328- │ 100×4×3×2 Dataset │
326+ ┌ 100×4×3×2 Dataset ┐
329327├───────────────────┴─────────────────────────────────── dims ┐
330328 ↓ draw ,
331329 → chain,
@@ -336,7 +334,7 @@ julia> idata_cat2.posterior
336334 :b eltype: Float64 dims: draw, chain, run size: 100×4×2
337335├──────────────────────────────────────────────────────────── metadata ┤
338336 Dict{String, Any} with 1 entry:
339- "created_at" => "2024-03-11T14:10:48.434 "
337+ "created_at" => "2025-02-04T10:49:16.704 "
340338```
341339
342340We can also concatenate only a subset of groups and merge the rest, which is useful when
@@ -357,8 +355,7 @@ InferenceData with groups:
357355 > observed_data
358356
359357julia> idata_cat3.posterior
360- ╭───────────────────╮
361- │ 100×4×3×2 Dataset │
358+ ┌ 100×4×3×2 Dataset ┐
362359├───────────────────┴─────────────────────────────────── dims ┐
363360 ↓ draw ,
364361 → chain,
@@ -369,18 +366,17 @@ julia> idata_cat3.posterior
369366 :b eltype: Float64 dims: draw, chain, run size: 100×4×2
370367├──────────────────────────────────────────────────────────── metadata ┤
371368 Dict{String, Any} with 1 entry:
372- "created_at" => "2024-03-11T14:10:48.434 "
369+ "created_at" => "2025-02-04T10:49:16.704 "
373370
374371julia> idata_cat3.observed_data
375- ╭────────────────────╮
376- │ 10-element Dataset │
372+ ┌ 10-element Dataset ┐
377373├────────────── dims ┤
378374 ↓ y_dim_1
379375├────────────────────┴─────────────── layers ┐
380376 :y eltype: Float64 dims: y_dim_1 size: 10
381377├────────────────────────────────────────────┴ metadata ┐
382378 Dict{String, Any} with 1 entry:
383- "created_at" => "2024-03-11T14:10:53.539 "
379+ "created_at" => "2025-02-04T10:49:16.71 "
384380```
385381"""
386382function Base. cat (data:: InferenceData , others:: InferenceData... ; groups= keys (data), dims)
0 commit comments