From 9e7ee119febb6388697dffe6a99b2042f933dc6a Mon Sep 17 00:00:00 2001 From: Julian Teichgraeber Date: Thu, 11 Jan 2024 18:40:14 +0000 Subject: [PATCH] rm unnecessary imports in tests --- tests/test_bayestest.py | 1 - tests/test_frequentist_hypothesis_tests.py | 3 --- tests/test_generate_output.py | 1 - tests/test_integrity_checks_in_notebook.py | 3 --- tests/test_numpyro_sampler_model.py | 1 - 5 files changed, 9 deletions(-) diff --git a/tests/test_bayestest.py b/tests/test_bayestest.py index 34e1c50..9f7c860 100644 --- a/tests/test_bayestest.py +++ b/tests/test_bayestest.py @@ -5,7 +5,6 @@ from tw_experimentation.bayes.bayes_test import BayesTest from tw_experimentation.data_generation import RevenueConversion -from tw_experimentation.bayes.numpyro_monkeypatch import ZeroInflatedLogNormal from numpyro.distributions import LogNormal, Gamma, Uniform diff --git a/tests/test_frequentist_hypothesis_tests.py b/tests/test_frequentist_hypothesis_tests.py index 86f2569..41422e5 100644 --- a/tests/test_frequentist_hypothesis_tests.py +++ b/tests/test_frequentist_hypothesis_tests.py @@ -1,15 +1,12 @@ import pytest -import pandas as pd from pandas import testing as tm -import numpy as np from tw_experimentation.utils import ExperimentDataset from tw_experimentation.data_generation import RevenueConversion from tw_experimentation.statistical_tests import ( FrequentistTest, - FrequentistTestResults, compute_frequentist_results, ) diff --git a/tests/test_generate_output.py b/tests/test_generate_output.py index 7534ff0..6fbce2a 100644 --- a/tests/test_generate_output.py +++ b/tests/test_generate_output.py @@ -1,6 +1,5 @@ import pytest -from tw_experimentation.utils import ExperimentDataset from tw_experimentation.data_generation import RevenueConversion from tw_experimentation.result_generator import ( generate_results, diff --git a/tests/test_integrity_checks_in_notebook.py b/tests/test_integrity_checks_in_notebook.py index 05a88a2..b527a7f 100644 --- a/tests/test_integrity_checks_in_notebook.py +++ b/tests/test_integrity_checks_in_notebook.py @@ -5,9 +5,6 @@ from tw_experimentation.utils import ExperimentDataset from tw_experimentation.data_generation import RevenueConversion -from tw_experimentation.statistical_tests import FrequentistTest, BaseTest - -from tw_experimentation.widgetizer import Monitoring, MonitoringInterface from tw_experimentation.checker import ( Monitoring, SegmentMonitoring, diff --git a/tests/test_numpyro_sampler_model.py b/tests/test_numpyro_sampler_model.py index 682ca07..a511ba6 100644 --- a/tests/test_numpyro_sampler_model.py +++ b/tests/test_numpyro_sampler_model.py @@ -5,7 +5,6 @@ from tw_experimentation.data_generation import RevenueConversion -import numpyro import numpyro.distributions as dist from jax import random