Skip to content

Commit

Permalink
do not clamp concentration
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Sep 13, 2024
1 parent 467e16e commit 8a18417
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gluonts/torch/distributions/generalized_pareto.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ def domain_map(
concentration: torch.Tensor,
): # type: ignore
scale = F.softplus(scale)
# Clamp concentration to avoid numerical issues
concentration = torch.tanh(concentration)

# Adjust loc for negative concentration
neg_conc = concentration < 0
Expand Down

0 comments on commit 8a18417

Please sign in to comment.