Skip to content

Commit 2aa0c02

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 3ff135d + 6914baf commit 2aa0c02

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

bayesflow/diagnostics/plots/pairs_posterior.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from collections.abc import Sequence, Mapping
1+
from collections.abc import Mapping, Sequence
22

33
import matplotlib.pyplot as plt
4-
54
import numpy as np
65
import pandas as pd
76
import seaborn as sns
@@ -19,7 +18,7 @@ def pairs_posterior(
1918
dataset_id: int = None,
2019
variable_keys: Sequence[str] = None,
2120
variable_names: Sequence[str] = None,
22-
height: int = 3,
21+
height: float = 3.0,
2322
post_color: str | tuple = "#132a70",
2423
prior_color: str | tuple = "gray",
2524
target_color: str | tuple = "red",

bayesflow/networks/deep_set/deep_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(
2828
output_pooling: str = "mean",
2929
mlp_widths_equivariant: Sequence[int] = (64, 64),
3030
mlp_widths_invariant_inner: Sequence[int] = (64, 64),
31-
mlp_widths_invariant_outer: Sequence[int] = (64, 64),
31+
mlp_widths_invariant_outer: Sequence[int] = (64, 4),
3232
mlp_widths_invariant_last: Sequence[int] = (64, 64),
3333
activation: str = "silu",
3434
kernel_initializer: str = "he_normal",
@@ -68,7 +68,7 @@ def __init__(
6868
mlp_widths_invariant_inner : Sequence[int], optional
6969
Widths of the inner MLP layers within the invariant module. Default is (64, 64).
7070
mlp_widths_invariant_outer : Sequence[int], optional
71-
Widths of the outer MLP layers within the invariant module. Default is (64, 64).
71+
Widths of the outer MLP layers within the invariant module. Default is (64, 4).
7272
mlp_widths_invariant_last : Sequence[int], optional
7373
Widths of the MLP layers in the final invariant transformation. Default is (64, 64).
7474
activation : str, optional
@@ -80,7 +80,7 @@ def __init__(
8080
spectral_normalization : bool, optional
8181
Whether to apply spectral normalization to stabilize training. Default is False.
8282
**kwargs
83-
Additional keyword arguments passed to the equivariant and invariant modules.
83+
Additional keyword arguments passed to the base class.
8484
"""
8585

8686
super().__init__(**kwargs)

0 commit comments

Comments
 (0)