Skip to content

Commit

Permalink
[Example]modify log msg to string of Catheter example (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijialin03 authored Feb 7, 2025
1 parent 22231b5 commit fad6927
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/catheter/catheter.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,10 @@ def evaluate(cfg: DictConfig):
.numpy()
.flatten()
)
logger.info(
"rel. error is ",
np.linalg.norm(y_test_pred - y_test[sample_id, :].flatten())
/ np.linalg.norm(y_test[sample_id, :].flatten()),
)
error = np.linalg.norm(
y_test_pred - y_test[sample_id, :].flatten()
) / np.linalg.norm(y_test[sample_id, :].flatten())
logger.info(f"rel. error is {error}")
xx = np.linspace(-500, 0, 2001)
plt.figure(figsize=(5, 4))

Expand Down

0 comments on commit fad6927

Please sign in to comment.