Skip to content
Snippets Groups Projects
Commit 81a31b78 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Corrected expected value of Gamma-Bernoulli distribution.

parent 9fde0abb
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ def predict_ERA5(net, ERA5_ds, predictand, batch_size=16, **kwargs):
prob = torch.sigmoid(torch.as_tensor(target[:, 0, ...].squeeze(),
dtype=torch.float32)).numpy()
# amount of precipitation: expected value of Bernoulli-Gamma distribution
# precipitation amount: expected value of Bernoulli-Gamma distribution
# pr = p * shape * scale
pr = (prob * np.exp(target[:, 1, ...].squeeze()) *
np.exp(target[:, 2, ...].squeeze()))
......
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