Skip to content

Commit

Permalink
add default values to lower/upper bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Eduardo Mercado Lopez committed Aug 22, 2023
1 parent e287242 commit 0e65431
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gluonts/torch/distributions/truncated_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def __init__(
self,
loc: torch.Tensor,
scale: torch.Tensor,
min: Union[torch.Tensor, float],
max: Union[torch.Tensor, float],
min: Union[torch.Tensor, float] = -1.0,
max: Union[torch.Tensor, float] = 1.0,
upscale: Union[torch.Tensor, float] = 5.0,
tanh_loc: bool = False,
):
Expand Down Expand Up @@ -240,8 +240,8 @@ class TruncatedNormalOutput(DistributionOutput):
@validated()
def __init__(
self,
min: float,
max: float,
min: float = -1.0,
max: float = 1.0,
upscale: float = 5.0,
tanh_loc: bool = False,
) -> None:
Expand Down

0 comments on commit 0e65431

Please sign in to comment.