We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22231b5 commit fad6927Copy full SHA for fad6927
examples/catheter/catheter.py
@@ -203,11 +203,10 @@ def evaluate(cfg: DictConfig):
203
.numpy()
204
.flatten()
205
)
206
- logger.info(
207
- "rel. error is ",
208
- np.linalg.norm(y_test_pred - y_test[sample_id, :].flatten())
209
- / np.linalg.norm(y_test[sample_id, :].flatten()),
210
- )
+ 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}")
211
xx = np.linspace(-500, 0, 2001)
212
plt.figure(figsize=(5, 4))
213
0 commit comments