Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bayesflow/networks/flow_matching/flow_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ class FlowMatching(InferenceNetwork):
}

OPTIMAL_TRANSPORT_DEFAULT_CONFIG = {
"method": "sinkhorn",
"cost": "euclidean",
"method": "log_sinkhorn",
"regularization": 0.1,
"max_steps": 100,
"tolerance": 1e-4,
"atol": 1e-5,
"rtol": 1e-4,
}

INTEGRATE_DEFAULT_CONFIG = {
Expand Down
6 changes: 1 addition & 5 deletions bayesflow/utils/optimal_transport/log_sinkhorn.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import keras

from .. import logging
from ..tensor_utils import is_symbolic_tensor

from .euclidean import euclidean

Expand All @@ -27,9 +26,6 @@ def log_sinkhorn_plan(x1, x2, regularization: float = 1.0, rtol=1e-5, atol=1e-8,

log_plan = cost / -(regularization * keras.ops.mean(cost) + 1e-16)

if is_symbolic_tensor(log_plan):
return log_plan

def contains_nans(plan):
return keras.ops.any(keras.ops.isnan(plan))

Expand Down Expand Up @@ -59,7 +55,7 @@ def do_nothing():
def log_steps():
msg = "Log-Sinkhorn-Knopp converged after {:d} steps."

logging.info(msg, steps)
logging.debug(msg, steps)

def warn_convergence():
marginals = keras.ops.logsumexp(log_plan, axis=0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bayesflow"
version = "2.0.0"
version = "2.0.1"
authors = [{ name = "The BayesFlow Team" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down