Skip to content
Snippets Groups Projects
Commit 84a30b5a authored by Jörg Martin's avatar Jörg Martin
Browse files

Fixed normalized coverage

parent bd922416
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,11 @@ def epistemic_coverage(prediction_triple, y, q=0.95, normalize_errors=False):
y = y.view((-1,1))
assert y.shape == mean.shape
# fix interval based on epis_unc
interval_length = multivariate_interval_length(dim=y.shape[1], q=q) \
* epis_unc
if not normalize_errors:
interval_length = multivariate_interval_length(dim=y.shape[1], q=q) \
* epis_unc
else:
interval_length = multivariate_interval_length(dim=y.shape[1], q=q)
total_unc = torch.sqrt(epis_unc**2 + aleat_unc **2)
# numerical computation
errors = mean - y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment