Skip to content

Commit

Permalink
seed_everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 26, 2024
1 parent 7493418 commit 679c485
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/mx/distribution/test_mx_distribution_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import mxnet as mx
import numpy as np
import pytest
from lightning import seed_everything

from gluonts.mx.model.tpp.distribution import (
Loglogistic,
Expand Down Expand Up @@ -1243,7 +1244,7 @@ def test_genpareto_likelihood(xi: float, beta: float, hybridize: bool) -> None:


@pytest.mark.timeout(120)
@pytest.mark.flaky(retries=9)
@pytest.mark.flaky(retries=6)
@pytest.mark.parametrize("rate", [50.0])
@pytest.mark.parametrize("zero_probability", [0.8, 0.2, 0.01])
@pytest.mark.parametrize("hybridize", [False, True])
Expand All @@ -1255,6 +1256,7 @@ def test_inflated_poisson_likelihood(
"""
Test to check that maximizing the likelihood recovers the parameters
"""
seed_everything(42)
# generate samples
num_samples = 2000 # Required for convergence

Expand Down

0 comments on commit 679c485

Please sign in to comment.