Skip to content

Commit 2906328

Browse files
radka-jsgreenbury
andauthored
Update autoemulate/core/metrics.py
Co-authored-by: Sam Greenbury <[email protected]>
1 parent ce24df4 commit 2906328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoemulate/core/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def __call__(
403403
if model_nll_output is None:
404404
msg = "Per-output MLL not available for non-Independent distributions."
405405
raise ValueError(msg)
406-
return model_nll_output - trivial_nll_output
406+
return (model_nll_output - trivial_nll_output).reshape(*y_true.shape)
407407
msg = (
408408
f"Unknown reduction method: {metric_params.reduction}. "
409409
"Expected 'mean' or 'none'."

0 commit comments

Comments
 (0)