Skip to content

Commit

Permalink
Delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCorenflos committed Dec 2, 2023
1 parent 30ddcbd commit 32765d2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions blackjax/vi/schrodinger_follmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,6 @@ def _log_fn_corrected(position, logdensity_fn):
return log_pdf_val + norm


def _correct_logdensity_val(position, val):
norm = jax.tree_map(lambda a: 0.5 * jnp.sum(a**2), position)
norm = sum(jax.tree_leaves(norm))
return val + norm


class schrodinger_follmer:
"""Implements the (basic) user interface for the Schrödinger-Föllmer algortithm :cite:p:`huang2021schrodingerfollmer`.
Expand Down

0 comments on commit 32765d2

Please sign in to comment.