Skip to content

Commit 8f3739c

Browse files
committed
Bump optimal transport default to False
1 parent 463c0c7 commit 8f3739c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bayesflow/networks/flow_matching/flow_matching.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
self,
5656
subnet: str | keras.Layer = "mlp",
5757
base_distribution: str | Distribution = "normal",
58-
use_optimal_transport: bool = True,
58+
use_optimal_transport: bool = False,
5959
loss_fn: str | keras.Loss = "mse",
6060
integrate_kwargs: dict[str, any] = None,
6161
optimal_transport_kwargs: dict[str, any] = None,
@@ -82,7 +82,8 @@ def __init__(
8282
The base probability distribution from which samples are drawn, such as "normal".
8383
Default is "normal".
8484
use_optimal_transport : bool, optional
85-
Whether to apply optimal transport for improved training stability. Default is True.
85+
Whether to apply optimal transport for improved training stability. Default is False.
86+
Note: this will increase training time by approximately ~2.5 times, but may lead to faster inference.
8687
loss_fn : str, optional
8788
The loss function used for training, such as "mse". Default is "mse".
8889
integrate_kwargs : dict[str, any], optional

0 commit comments

Comments
 (0)