Skip to content

Commit

Permalink
fix rmse util
Browse files Browse the repository at this point in the history
  • Loading branch information
ziatdinovmax committed Oct 27, 2024
1 parent da11286 commit d13ab99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurobayes/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def rmse(y_pred: jnp.ndarray, y_true: jnp.ndarray) -> jnp.ndarray:
"""
Calculates the root mean squared error between true and predicted values.
"""
mse = mse(y_pred, y_true)
return jnp.sqrt(mse)
mse_ = mse(y_pred, y_true)
return jnp.sqrt(mse_)


def mae(y_pred: jnp.ndarray, y_true: jnp.ndarray) -> jnp.ndarray:
Expand Down

0 comments on commit d13ab99

Please sign in to comment.