Skip to content

Commit cdc8111

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

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
@@ -373,7 +373,7 @@ def __call__(
373373
"distributions."
374374
)
375375
raise ValueError(msg)
376-
return model_nll_output
376+
return model_nll_output.reshape(*y_true.shape)
377377
msg = (
378378
f"Unknown reduction method: {metric_params.reduction}. "
379379
"Expected 'mean' or 'none'."

0 commit comments

Comments
 (0)