Skip to content

Commit

Permalink
Correct typo and make error message more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
alicjapolanska committed Aug 14, 2024
1 parent 58dd63f commit 631cc00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions harmonic/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(

if transformation != None and log_J_det == None:
raise ValueError(
"Please specify function to calculate Jacobian determinant of data transformation."
"Please specify function to calculate log of absolute value of the determinant Jacobian determinant of data transformation."
)

self.ndim = ndim_in
Expand All @@ -126,8 +126,8 @@ def __init__(
self.temperature = temperature
self.flow = None
if not transformation is None:
self.transformation_vmap = jax.vmap(transformation, in_axes=0)
self.J_det_vmap = jax.vmap(log_J_det, in_axes=0)
self.transformation_vmap = jax.vmap(transformation, in_axes=(0, None))
self.log_J_det_vmap = jax.vmap(log_J_det, in_axes=(0, None))
else:
self.transformation_vmap = transformation

Expand Down

0 comments on commit 631cc00

Please sign in to comment.