From 6fe22b27534560941f3f9cb8b1ddcbcc49fc8fd8 Mon Sep 17 00:00:00 2001 From: Ben Zickel Date: Wed, 29 May 2024 18:36:21 +0300 Subject: [PATCH] Rename and comment on non-zero skew. --- tests/distributions/conftest.py | 7 +++++++ ...est_stable_with_log_prob.py => test_stable_log_prob.py} | 0 2 files changed, 7 insertions(+) rename tests/distributions/{test_stable_with_log_prob.py => test_stable_log_prob.py} (100%) diff --git a/tests/distributions/conftest.py b/tests/distributions/conftest.py index b0b154864f..f544fa54c7 100644 --- a/tests/distributions/conftest.py +++ b/tests/distributions/conftest.py @@ -502,6 +502,13 @@ def __init__(self, von_loc, von_conc, skewness): pyro_dist=dist.Stable, scipy_dist=sp.levy_stable, examples=[ + # Skew is zero as the default parameterization of the scipy + # implementation is S and cannot be changed via initizalization + # arguments (pyro's default parameterization is S0 which + # gives different results with non-zero skew). + # Testing with non-zero skew is done in + # tests.distributions.test_stable_log_prob and + # tests.distributions.test_stable {"stability": [1.5], "skew": 0.0, "test_data": [-10.0]}, { "stability": [1.5, 0.5], diff --git a/tests/distributions/test_stable_with_log_prob.py b/tests/distributions/test_stable_log_prob.py similarity index 100% rename from tests/distributions/test_stable_with_log_prob.py rename to tests/distributions/test_stable_log_prob.py