diff --git a/tensorflow_probability/python/distributions/autoregressive_test.py b/tensorflow_probability/python/distributions/autoregressive_test.py index 7db54fcc91..95369788c5 100644 --- a/tensorflow_probability/python/distributions/autoregressive_test.py +++ b/tensorflow_probability/python/distributions/autoregressive_test.py @@ -16,8 +16,6 @@ import warnings -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import masked_autoregressive diff --git a/tensorflow_probability/python/distributions/batch_broadcast.py b/tensorflow_probability/python/distributions/batch_broadcast.py index 6c1bbe835b..887e4c1591 100644 --- a/tensorflow_probability/python/distributions/batch_broadcast.py +++ b/tensorflow_probability/python/distributions/batch_broadcast.py @@ -14,7 +14,6 @@ # ============================================================================ """Batch broadcasting meta-distribuion.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import bijector as bijector_lib diff --git a/tensorflow_probability/python/distributions/batch_broadcast_test.py b/tensorflow_probability/python/distributions/batch_broadcast_test.py index 9bc8541133..fcde493441 100644 --- a/tensorflow_probability/python/distributions/batch_broadcast_test.py +++ b/tensorflow_probability/python/distributions/batch_broadcast_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for BatchBroadcast.""" -# Dependency imports - import hypothesis as hp import hypothesis.strategies as hps diff --git a/tensorflow_probability/python/distributions/batch_concat.py b/tensorflow_probability/python/distributions/batch_concat.py index 0487410cb1..5ac81ccaae 100644 --- a/tensorflow_probability/python/distributions/batch_concat.py +++ b/tensorflow_probability/python/distributions/batch_concat.py @@ -15,7 +15,6 @@ """The BatchConcat distribution.""" import functools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/batch_concat_test.py b/tensorflow_probability/python/distributions/batch_concat_test.py index ccde93078a..1baed7391b 100644 --- a/tensorflow_probability/python/distributions/batch_concat_test.py +++ b/tensorflow_probability/python/distributions/batch_concat_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for BatchConcat.""" -# Dependency imports - from absl.testing import parameterized import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/batch_reshape.py b/tensorflow_probability/python/distributions/batch_reshape.py index c39880ca7d..6ba657daa0 100644 --- a/tensorflow_probability/python/distributions/batch_reshape.py +++ b/tensorflow_probability/python/distributions/batch_reshape.py @@ -14,7 +14,6 @@ # ============================================================================ """The BatchReshape distribution.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/batch_reshape_test.py b/tensorflow_probability/python/distributions/batch_reshape_test.py index fb0b71bb93..2b0b19c760 100644 --- a/tensorflow_probability/python/distributions/batch_reshape_test.py +++ b/tensorflow_probability/python/distributions/batch_reshape_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for BatchReshape.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/bates.py b/tensorflow_probability/python/distributions/bates.py index 1a4cbb2bc8..703243eda6 100644 --- a/tensorflow_probability/python/distributions/bates.py +++ b/tensorflow_probability/python/distributions/bates.py @@ -16,8 +16,6 @@ import sys -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/bates_test.py b/tensorflow_probability/python/distributions/bates_test.py index f2ca52b216..b046a66ca0 100644 --- a/tensorflow_probability/python/distributions/bates_test.py +++ b/tensorflow_probability/python/distributions/bates_test.py @@ -18,7 +18,6 @@ import math import sys -# Dependency imports from absl.testing import parameterized import hypothesis as hp import hypothesis.strategies as hps diff --git a/tensorflow_probability/python/distributions/bernoulli_test.py b/tensorflow_probability/python/distributions/bernoulli_test.py index ba357b01b0..30b5398a97 100644 --- a/tensorflow_probability/python/distributions/bernoulli_test.py +++ b/tensorflow_probability/python/distributions/bernoulli_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for the Bernoulli distribution.""" -# Dependency imports - import numpy as np from scipy import special as sp_special import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/beta.py b/tensorflow_probability/python/distributions/beta.py index 97041ab4ad..520f13d830 100644 --- a/tensorflow_probability/python/distributions/beta.py +++ b/tensorflow_probability/python/distributions/beta.py @@ -14,7 +14,6 @@ # ============================================================================ """The Beta distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/beta_binomial.py b/tensorflow_probability/python/distributions/beta_binomial.py index a8b272dfb3..3f2f4bf641 100644 --- a/tensorflow_probability/python/distributions/beta_binomial.py +++ b/tensorflow_probability/python/distributions/beta_binomial.py @@ -14,7 +14,6 @@ # ============================================================================ """The BetaBinomial distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import softplus as softplus_bijector from tensorflow_probability.python.distributions import binomial diff --git a/tensorflow_probability/python/distributions/beta_binomial_test.py b/tensorflow_probability/python/distributions/beta_binomial_test.py index 7aa5b46868..a01bb452d8 100644 --- a/tensorflow_probability/python/distributions/beta_binomial_test.py +++ b/tensorflow_probability/python/distributions/beta_binomial_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/beta_quotient.py b/tensorflow_probability/python/distributions/beta_quotient.py index 1df50a2f29..ae7a69fbf5 100644 --- a/tensorflow_probability/python/distributions/beta_quotient.py +++ b/tensorflow_probability/python/distributions/beta_quotient.py @@ -14,7 +14,6 @@ # ============================================================================ """The BetaQuotient distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/beta_quotient_test.py b/tensorflow_probability/python/distributions/beta_quotient_test.py index cb1d907323..c86f3437a9 100644 --- a/tensorflow_probability/python/distributions/beta_quotient_test.py +++ b/tensorflow_probability/python/distributions/beta_quotient_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import special as sp_special from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/beta_test.py b/tensorflow_probability/python/distributions/beta_test.py index 3253e054e6..5bc6b238a8 100644 --- a/tensorflow_probability/python/distributions/beta_test.py +++ b/tensorflow_probability/python/distributions/beta_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/distributions/binomial.py b/tensorflow_probability/python/distributions/binomial.py index fa3c13f3f2..560c1c6da7 100644 --- a/tensorflow_probability/python/distributions/binomial.py +++ b/tensorflow_probability/python/distributions/binomial.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """The Binomial distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import sigmoid as sigmoid_bijector diff --git a/tensorflow_probability/python/distributions/binomial_test.py b/tensorflow_probability/python/distributions/binomial_test.py index d05839adf2..5530d00aae 100644 --- a/tensorflow_probability/python/distributions/binomial_test.py +++ b/tensorflow_probability/python/distributions/binomial_test.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/categorical_test.py b/tensorflow_probability/python/distributions/categorical_test.py index 5b1684cb89..b8b38490f0 100644 --- a/tensorflow_probability/python/distributions/categorical_test.py +++ b/tensorflow_probability/python/distributions/categorical_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Categorical distribution.""" -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/cauchy.py b/tensorflow_probability/python/distributions/cauchy.py index eb0d8c8f3b..289297ef27 100644 --- a/tensorflow_probability/python/distributions/cauchy.py +++ b/tensorflow_probability/python/distributions/cauchy.py @@ -14,7 +14,6 @@ # ============================================================================ """The Cauchy distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/cauchy_test.py b/tensorflow_probability/python/distributions/cauchy_test.py index 4bfd09eb28..718ba67cef 100644 --- a/tensorflow_probability/python/distributions/cauchy_test.py +++ b/tensorflow_probability/python/distributions/cauchy_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Cauchy.""" -# Dependency imports import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/chi2_test.py b/tensorflow_probability/python/distributions/chi2_test.py index 0bc67ac5ee..0af1f8435d 100644 --- a/tensorflow_probability/python/distributions/chi2_test.py +++ b/tensorflow_probability/python/distributions/chi2_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for initializers.""" -# Dependency imports import numpy as np from scipy import special from scipy import stats diff --git a/tensorflow_probability/python/distributions/chi_test.py b/tensorflow_probability/python/distributions/chi_test.py index e7e7d6bcce..e2dea6c8c1 100644 --- a/tensorflow_probability/python/distributions/chi_test.py +++ b/tensorflow_probability/python/distributions/chi_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Chi distribution.""" -# Dependency imports import numpy as np from scipy import special from scipy import stats diff --git a/tensorflow_probability/python/distributions/cholesky_lkj.py b/tensorflow_probability/python/distributions/cholesky_lkj.py index 40e8bc6d76..cf8aab9fd7 100644 --- a/tensorflow_probability/python/distributions/cholesky_lkj.py +++ b/tensorflow_probability/python/distributions/cholesky_lkj.py @@ -14,7 +14,6 @@ # ============================================================================ """CholeskyLKJ distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/cholesky_lkj_test.py b/tensorflow_probability/python/distributions/cholesky_lkj_test.py index 823bda1cae..3272c9c0bf 100644 --- a/tensorflow_probability/python/distributions/cholesky_lkj_test.py +++ b/tensorflow_probability/python/distributions/cholesky_lkj_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for the Cholesky LKJ distribution.""" -# Dependency imports from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/cholesky_util_test.py b/tensorflow_probability/python/distributions/cholesky_util_test.py index 90450482d8..f414153452 100644 --- a/tensorflow_probability/python/distributions/cholesky_util_test.py +++ b/tensorflow_probability/python/distributions/cholesky_util_test.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports - import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import cholesky_util diff --git a/tensorflow_probability/python/distributions/continuous_bernoulli.py b/tensorflow_probability/python/distributions/continuous_bernoulli.py index a88fdca2d8..211763c6cb 100644 --- a/tensorflow_probability/python/distributions/continuous_bernoulli.py +++ b/tensorflow_probability/python/distributions/continuous_bernoulli.py @@ -14,7 +14,6 @@ # ============================================================================ """The continuous Bernoulli distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import sigmoid as sigmoid_bijector diff --git a/tensorflow_probability/python/distributions/continuous_bernoulli_test.py b/tensorflow_probability/python/distributions/continuous_bernoulli_test.py index 50c62a5e9a..5907cef426 100644 --- a/tensorflow_probability/python/distributions/continuous_bernoulli_test.py +++ b/tensorflow_probability/python/distributions/continuous_bernoulli_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for the continuous Bernoulli distribution.""" -# Dependency imports - import numpy as np from scipy import special as sp_special import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/deterministic.py b/tensorflow_probability/python/distributions/deterministic.py index b3d9c11d43..0e9bc3e534 100644 --- a/tensorflow_probability/python/distributions/deterministic.py +++ b/tensorflow_probability/python/distributions/deterministic.py @@ -16,7 +16,6 @@ import abc -# Dependency imports import six import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/deterministic_test.py b/tensorflow_probability/python/distributions/deterministic_test.py index 893ab43bc3..cfa2e45eec 100644 --- a/tensorflow_probability/python/distributions/deterministic_test.py +++ b/tensorflow_probability/python/distributions/deterministic_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/dirichlet.py b/tensorflow_probability/python/distributions/dirichlet.py index 3b6eb57ca6..3c8c9a1a9b 100644 --- a/tensorflow_probability/python/distributions/dirichlet.py +++ b/tensorflow_probability/python/distributions/dirichlet.py @@ -14,7 +14,6 @@ # ============================================================================ """The Dirichlet distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import softmax_centered as softmax_centered_bijector diff --git a/tensorflow_probability/python/distributions/dirichlet_multinomial_test.py b/tensorflow_probability/python/distributions/dirichlet_multinomial_test.py index a49869d267..14db252c51 100644 --- a/tensorflow_probability/python/distributions/dirichlet_multinomial_test.py +++ b/tensorflow_probability/python/distributions/dirichlet_multinomial_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/dirichlet_test.py b/tensorflow_probability/python/distributions/dirichlet_test.py index a5696cc8fa..2447c52db3 100644 --- a/tensorflow_probability/python/distributions/dirichlet_test.py +++ b/tensorflow_probability/python/distributions/dirichlet_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/distributions/discrete_rejection_sampling_test.py b/tensorflow_probability/python/distributions/discrete_rejection_sampling_test.py index 3b22f7d044..ebb50c8cca 100644 --- a/tensorflow_probability/python/distributions/discrete_rejection_sampling_test.py +++ b/tensorflow_probability/python/distributions/discrete_rejection_sampling_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for discrete rejection sampling utilities.""" -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/distribution_test.py b/tensorflow_probability/python/distributions/distribution_test.py index 1d03bb39c8..6b41f7d027 100644 --- a/tensorflow_probability/python/distributions/distribution_test.py +++ b/tensorflow_probability/python/distributions/distribution_test.py @@ -13,8 +13,6 @@ # limitations under the License. # ============================================================================ import collections -# Dependency imports - from absl import logging from absl.testing import parameterized diff --git a/tensorflow_probability/python/distributions/empirical_test.py b/tensorflow_probability/python/distributions/empirical_test.py index 3c12807c8f..f44910b3bd 100644 --- a/tensorflow_probability/python/distributions/empirical_test.py +++ b/tensorflow_probability/python/distributions/empirical_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for the Empirical distribution.""" -# Dependency imports from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/exp_gamma.py b/tensorflow_probability/python/distributions/exp_gamma.py index b566e10a8a..7434810b2a 100644 --- a/tensorflow_probability/python/distributions/exp_gamma.py +++ b/tensorflow_probability/python/distributions/exp_gamma.py @@ -14,7 +14,6 @@ # ============================================================================ """The ExpGamma distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import identity as identity_bijector diff --git a/tensorflow_probability/python/distributions/exp_gamma_test.py b/tensorflow_probability/python/distributions/exp_gamma_test.py index 954075b2c6..eb529adba0 100644 --- a/tensorflow_probability/python/distributions/exp_gamma_test.py +++ b/tensorflow_probability/python/distributions/exp_gamma_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import misc as sp_misc diff --git a/tensorflow_probability/python/distributions/exponential.py b/tensorflow_probability/python/distributions/exponential.py index 79422c05fd..2418be93b8 100644 --- a/tensorflow_probability/python/distributions/exponential.py +++ b/tensorflow_probability/python/distributions/exponential.py @@ -14,7 +14,6 @@ # ============================================================================ """The Exponential distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/exponential_test.py b/tensorflow_probability/python/distributions/exponential_test.py index 730b79f637..c71696b83b 100644 --- a/tensorflow_probability/python/distributions/exponential_test.py +++ b/tensorflow_probability/python/distributions/exponential_test.py @@ -15,7 +15,6 @@ """Tests for initializers.""" -# Dependency imports import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/exponentially_modified_gaussian.py b/tensorflow_probability/python/distributions/exponentially_modified_gaussian.py index d2320ff083..a3cd0b0e2e 100644 --- a/tensorflow_probability/python/distributions/exponentially_modified_gaussian.py +++ b/tensorflow_probability/python/distributions/exponentially_modified_gaussian.py @@ -14,8 +14,6 @@ # ============================================================================ """The exponentially modified Gaussian distribution class.""" -# Dependency imports - import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import identity as identity_bijector from tensorflow_probability.python.bijectors import softplus as softplus_bijector diff --git a/tensorflow_probability/python/distributions/exponentially_modified_gaussian_test.py b/tensorflow_probability/python/distributions/exponentially_modified_gaussian_test.py index ede2c73e66..f9dd116943 100644 --- a/tensorflow_probability/python/distributions/exponentially_modified_gaussian_test.py +++ b/tensorflow_probability/python/distributions/exponentially_modified_gaussian_test.py @@ -16,8 +16,6 @@ import math -# Dependency imports - import numpy as np from scipy import stats as sp_stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/gamma.py b/tensorflow_probability/python/distributions/gamma.py index 2e0833043b..c90de229f1 100644 --- a/tensorflow_probability/python/distributions/gamma.py +++ b/tensorflow_probability/python/distributions/gamma.py @@ -14,7 +14,6 @@ # ============================================================================ """The Gamma distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/gamma_gamma.py b/tensorflow_probability/python/distributions/gamma_gamma.py index b162cf457d..65037b7d95 100644 --- a/tensorflow_probability/python/distributions/gamma_gamma.py +++ b/tensorflow_probability/python/distributions/gamma_gamma.py @@ -14,7 +14,6 @@ # ============================================================================ """The GammaGamma distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/gamma_gamma_test.py b/tensorflow_probability/python/distributions/gamma_gamma_test.py index 3d02d94100..d3f635d610 100644 --- a/tensorflow_probability/python/distributions/gamma_gamma_test.py +++ b/tensorflow_probability/python/distributions/gamma_gamma_test.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import gamma_gamma diff --git a/tensorflow_probability/python/distributions/gamma_test.py b/tensorflow_probability/python/distributions/gamma_test.py index 8090af4385..404232328a 100644 --- a/tensorflow_probability/python/distributions/gamma_test.py +++ b/tensorflow_probability/python/distributions/gamma_test.py @@ -15,7 +15,6 @@ import functools -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import misc as sp_misc diff --git a/tensorflow_probability/python/distributions/gaussian_process.py b/tensorflow_probability/python/distributions/gaussian_process.py index 6131b688e4..dc3e2e757d 100644 --- a/tensorflow_probability/python/distributions/gaussian_process.py +++ b/tensorflow_probability/python/distributions/gaussian_process.py @@ -16,7 +16,6 @@ import functools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/gaussian_process_regression_model.py b/tensorflow_probability/python/distributions/gaussian_process_regression_model.py index 1df5cb596e..1587d99280 100644 --- a/tensorflow_probability/python/distributions/gaussian_process_regression_model.py +++ b/tensorflow_probability/python/distributions/gaussian_process_regression_model.py @@ -14,7 +14,6 @@ # ============================================================================ """The GaussianProcessRegressionModel distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import softplus as softplus_bijector diff --git a/tensorflow_probability/python/distributions/gaussian_process_regression_model_test.py b/tensorflow_probability/python/distributions/gaussian_process_regression_model_test.py index 71daa27df6..bc33e0c2f6 100644 --- a/tensorflow_probability/python/distributions/gaussian_process_regression_model_test.py +++ b/tensorflow_probability/python/distributions/gaussian_process_regression_model_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ from unittest import mock -# Dependency imports from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/gaussian_process_test.py b/tensorflow_probability/python/distributions/gaussian_process_test.py index 00ea693f2e..d56eb23156 100644 --- a/tensorflow_probability/python/distributions/gaussian_process_test.py +++ b/tensorflow_probability/python/distributions/gaussian_process_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/generalized_normal.py b/tensorflow_probability/python/distributions/generalized_normal.py index 79c245a24f..68938ea927 100644 --- a/tensorflow_probability/python/distributions/generalized_normal.py +++ b/tensorflow_probability/python/distributions/generalized_normal.py @@ -14,7 +14,6 @@ # ============================================================================ """The Generalized Normal (Generalized Gaussian) distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/generalized_normal_test.py b/tensorflow_probability/python/distributions/generalized_normal_test.py index c760c9229b..f03791676d 100644 --- a/tensorflow_probability/python/distributions/generalized_normal_test.py +++ b/tensorflow_probability/python/distributions/generalized_normal_test.py @@ -14,8 +14,6 @@ # ============================================================================ import math -# Dependency imports - import numpy as np from scipy import stats as sp_stats from scipy.special import gamma as sp_gamma diff --git a/tensorflow_probability/python/distributions/generalized_pareto_test.py b/tensorflow_probability/python/distributions/generalized_pareto_test.py index 92f274c43c..94c7314199 100644 --- a/tensorflow_probability/python/distributions/generalized_pareto_test.py +++ b/tensorflow_probability/python/distributions/generalized_pareto_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Generalized Pareto distribution.""" -# Dependency imports import hypothesis as hp import hypothesis.strategies as hps import numpy as np diff --git a/tensorflow_probability/python/distributions/geometric.py b/tensorflow_probability/python/distributions/geometric.py index cba1f7a855..62954f0b49 100644 --- a/tensorflow_probability/python/distributions/geometric.py +++ b/tensorflow_probability/python/distributions/geometric.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """The Geometric distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/geometric_test.py b/tensorflow_probability/python/distributions/geometric_test.py index cd833de290..848b3671eb 100644 --- a/tensorflow_probability/python/distributions/geometric_test.py +++ b/tensorflow_probability/python/distributions/geometric_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for the Geometric distribution.""" -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/gev.py b/tensorflow_probability/python/distributions/gev.py index 550d4974e5..bad056eef2 100644 --- a/tensorflow_probability/python/distributions/gev.py +++ b/tensorflow_probability/python/distributions/gev.py @@ -14,7 +14,6 @@ # ============================================================================ """The GeneralizedExtremeValue distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/gev_test.py b/tensorflow_probability/python/distributions/gev_test.py index c22752fc2f..c9754a94fa 100644 --- a/tensorflow_probability/python/distributions/gev_test.py +++ b/tensorflow_probability/python/distributions/gev_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for GEV.""" -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/gumbel.py b/tensorflow_probability/python/distributions/gumbel.py index d661a52b86..e9746ff5d5 100644 --- a/tensorflow_probability/python/distributions/gumbel.py +++ b/tensorflow_probability/python/distributions/gumbel.py @@ -14,7 +14,6 @@ # ============================================================================ """The Gumbel distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/gumbel_test.py b/tensorflow_probability/python/distributions/gumbel_test.py index f1482664ba..2a5f8671c4 100644 --- a/tensorflow_probability/python/distributions/gumbel_test.py +++ b/tensorflow_probability/python/distributions/gumbel_test.py @@ -16,8 +16,6 @@ import math -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/half_cauchy.py b/tensorflow_probability/python/distributions/half_cauchy.py index 97a42e98e2..684ede2d19 100644 --- a/tensorflow_probability/python/distributions/half_cauchy.py +++ b/tensorflow_probability/python/distributions/half_cauchy.py @@ -14,7 +14,6 @@ # ============================================================================ """Half-Cauchy Distribution Class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/half_cauchy_test.py b/tensorflow_probability/python/distributions/half_cauchy_test.py index ebdc4c1be5..4fb0df82f3 100644 --- a/tensorflow_probability/python/distributions/half_cauchy_test.py +++ b/tensorflow_probability/python/distributions/half_cauchy_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/half_normal.py b/tensorflow_probability/python/distributions/half_normal.py index 12a46df2cc..f956065fb7 100644 --- a/tensorflow_probability/python/distributions/half_normal.py +++ b/tensorflow_probability/python/distributions/half_normal.py @@ -16,7 +16,6 @@ import math -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/half_normal_test.py b/tensorflow_probability/python/distributions/half_normal_test.py index aaf7ae8ed0..83e3dfa1a9 100644 --- a/tensorflow_probability/python/distributions/half_normal_test.py +++ b/tensorflow_probability/python/distributions/half_normal_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for initializers.""" -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/half_student_t.py b/tensorflow_probability/python/distributions/half_student_t.py index ff04d57358..ab05513215 100644 --- a/tensorflow_probability/python/distributions/half_student_t.py +++ b/tensorflow_probability/python/distributions/half_student_t.py @@ -14,7 +14,6 @@ # ============================================================================ """Half-Student's T Distribution Class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/half_student_t_test.py b/tensorflow_probability/python/distributions/half_student_t_test.py index 9c327a8d5f..401a98235f 100644 --- a/tensorflow_probability/python/distributions/half_student_t_test.py +++ b/tensorflow_probability/python/distributions/half_student_t_test.py @@ -16,7 +16,6 @@ import math -# Dependency imports import numpy as np from scipy import stats as sp_stats from scipy.special import gamma diff --git a/tensorflow_probability/python/distributions/hidden_markov_model_test.py b/tensorflow_probability/python/distributions/hidden_markov_model_test.py index 11a96cbf1b..35a2c6ec5e 100644 --- a/tensorflow_probability/python/distributions/hidden_markov_model_test.py +++ b/tensorflow_probability/python/distributions/hidden_markov_model_test.py @@ -15,8 +15,6 @@ """The HiddenMarkovModel distribution class.""" -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/horseshoe.py b/tensorflow_probability/python/distributions/horseshoe.py index 0a17376f18..dcd1143ae0 100644 --- a/tensorflow_probability/python/distributions/horseshoe.py +++ b/tensorflow_probability/python/distributions/horseshoe.py @@ -14,7 +14,6 @@ # ============================================================================ """Horseshoe Distribution Class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/horseshoe_test.py b/tensorflow_probability/python/distributions/horseshoe_test.py index 8bb04ddf9c..a46e5d38ce 100644 --- a/tensorflow_probability/python/distributions/horseshoe_test.py +++ b/tensorflow_probability/python/distributions/horseshoe_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Horseshoe Distribution.""" -# Dependency imports import numpy as np import scipy.stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/independent_test.py b/tensorflow_probability/python/distributions/independent_test.py index fadf71c32c..6ba548923c 100644 --- a/tensorflow_probability/python/distributions/independent_test.py +++ b/tensorflow_probability/python/distributions/independent_test.py @@ -17,8 +17,6 @@ import functools import os -# Dependency imports - from absl.testing import parameterized import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/inverse_gamma.py b/tensorflow_probability/python/distributions/inverse_gamma.py index 1d26d7ce4f..d903985a5c 100644 --- a/tensorflow_probability/python/distributions/inverse_gamma.py +++ b/tensorflow_probability/python/distributions/inverse_gamma.py @@ -14,7 +14,6 @@ # ============================================================================ """The InverseGamma distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/inverse_gamma_test.py b/tensorflow_probability/python/distributions/inverse_gamma_test.py index 6e76e03930..55f997483f 100644 --- a/tensorflow_probability/python/distributions/inverse_gamma_test.py +++ b/tensorflow_probability/python/distributions/inverse_gamma_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/inverse_gaussian.py b/tensorflow_probability/python/distributions/inverse_gaussian.py index 6e47ff3a5f..df08a49411 100644 --- a/tensorflow_probability/python/distributions/inverse_gaussian.py +++ b/tensorflow_probability/python/distributions/inverse_gaussian.py @@ -14,7 +14,6 @@ # ============================================================================ """The InverseGaussian distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/johnson_su.py b/tensorflow_probability/python/distributions/johnson_su.py index d7ed862e13..1054dcc6c2 100644 --- a/tensorflow_probability/python/distributions/johnson_su.py +++ b/tensorflow_probability/python/distributions/johnson_su.py @@ -14,7 +14,6 @@ # ============================================================================ """Johnson's SU distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import invert as invert_bijector from tensorflow_probability.python.bijectors import scale as scale_bijector diff --git a/tensorflow_probability/python/distributions/johnson_su_test.py b/tensorflow_probability/python/distributions/johnson_su_test.py index e126fd5fab..3e97d31f03 100644 --- a/tensorflow_probability/python/distributions/johnson_su_test.py +++ b/tensorflow_probability/python/distributions/johnson_su_test.py @@ -16,8 +16,6 @@ import math -# Dependency imports - import numpy as np from scipy import stats as sp_stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/joint_distribution_auto_batched_test.py b/tensorflow_probability/python/distributions/joint_distribution_auto_batched_test.py index da6c826a41..944f67a1e1 100644 --- a/tensorflow_probability/python/distributions/joint_distribution_auto_batched_test.py +++ b/tensorflow_probability/python/distributions/joint_distribution_auto_batched_test.py @@ -17,7 +17,6 @@ import collections import os -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/joint_distribution_coroutine_test.py b/tensorflow_probability/python/distributions/joint_distribution_coroutine_test.py index 35b2385509..d786e7539b 100644 --- a/tensorflow_probability/python/distributions/joint_distribution_coroutine_test.py +++ b/tensorflow_probability/python/distributions/joint_distribution_coroutine_test.py @@ -18,7 +18,6 @@ import functools import warnings -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/joint_distribution_named_test.py b/tensorflow_probability/python/distributions/joint_distribution_named_test.py index 7297042708..87fffe68ec 100644 --- a/tensorflow_probability/python/distributions/joint_distribution_named_test.py +++ b/tensorflow_probability/python/distributions/joint_distribution_named_test.py @@ -16,8 +16,6 @@ import collections -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/joint_distribution_sequential_test.py b/tensorflow_probability/python/distributions/joint_distribution_sequential_test.py index 1ccc6c3a6c..6a719e9511 100644 --- a/tensorflow_probability/python/distributions/joint_distribution_sequential_test.py +++ b/tensorflow_probability/python/distributions/joint_distribution_sequential_test.py @@ -17,7 +17,6 @@ import collections import inspect -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/joint_distribution_util_test.py b/tensorflow_probability/python/distributions/joint_distribution_util_test.py index 4917eafc1d..d04dca4335 100644 --- a/tensorflow_probability/python/distributions/joint_distribution_util_test.py +++ b/tensorflow_probability/python/distributions/joint_distribution_util_test.py @@ -16,8 +16,6 @@ import collections -# Dependency imports - import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import dirichlet diff --git a/tensorflow_probability/python/distributions/kumaraswamy.py b/tensorflow_probability/python/distributions/kumaraswamy.py index 315ed416af..a14820be73 100644 --- a/tensorflow_probability/python/distributions/kumaraswamy.py +++ b/tensorflow_probability/python/distributions/kumaraswamy.py @@ -14,7 +14,6 @@ # ============================================================================ """The Kumaraswamy distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/kumaraswamy_test.py b/tensorflow_probability/python/distributions/kumaraswamy_test.py index 3ad38d7371..d7f59c8135 100644 --- a/tensorflow_probability/python/distributions/kumaraswamy_test.py +++ b/tensorflow_probability/python/distributions/kumaraswamy_test.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports - import numpy as np from scipy import special as sp_special from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/lambertw_f.py b/tensorflow_probability/python/distributions/lambertw_f.py index a9df8bba5f..b994b78f39 100644 --- a/tensorflow_probability/python/distributions/lambertw_f.py +++ b/tensorflow_probability/python/distributions/lambertw_f.py @@ -14,7 +14,6 @@ # ============================================================================ """The Lambert W x F distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import identity as identity_bijector diff --git a/tensorflow_probability/python/distributions/lambertw_f_test.py b/tensorflow_probability/python/distributions/lambertw_f_test.py index 25a90ea6ec..9fd7d6f25f 100644 --- a/tensorflow_probability/python/distributions/lambertw_f_test.py +++ b/tensorflow_probability/python/distributions/lambertw_f_test.py @@ -15,7 +15,6 @@ """Tests for LambertWDistributions.""" import math -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/laplace.py b/tensorflow_probability/python/distributions/laplace.py index 8a8c0ee20d..3adba32a3c 100644 --- a/tensorflow_probability/python/distributions/laplace.py +++ b/tensorflow_probability/python/distributions/laplace.py @@ -14,7 +14,6 @@ # ============================================================================ """The Laplace distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/laplace_test.py b/tensorflow_probability/python/distributions/laplace_test.py index ef8910abc7..06e156d866 100644 --- a/tensorflow_probability/python/distributions/laplace_test.py +++ b/tensorflow_probability/python/distributions/laplace_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/linear_gaussian_ssm.py b/tensorflow_probability/python/distributions/linear_gaussian_ssm.py index facb6e6b34..46461446f4 100644 --- a/tensorflow_probability/python/distributions/linear_gaussian_ssm.py +++ b/tensorflow_probability/python/distributions/linear_gaussian_ssm.py @@ -18,7 +18,6 @@ import functools import warnings -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import identity as identity_bijector diff --git a/tensorflow_probability/python/distributions/linear_gaussian_ssm_test.py b/tensorflow_probability/python/distributions/linear_gaussian_ssm_test.py index 489379a8f1..437939bf46 100644 --- a/tensorflow_probability/python/distributions/linear_gaussian_ssm_test.py +++ b/tensorflow_probability/python/distributions/linear_gaussian_ssm_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Linear Gaussian State Space Model.""" -# Dependency imports - from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/lkj.py b/tensorflow_probability/python/distributions/lkj.py index ad94401e0e..3359188851 100644 --- a/tensorflow_probability/python/distributions/lkj.py +++ b/tensorflow_probability/python/distributions/lkj.py @@ -21,7 +21,6 @@ 1989-2001. """ -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/lkj_test.py b/tensorflow_probability/python/distributions/lkj_test.py index 85dbf4082d..4f62fd5be6 100644 --- a/tensorflow_probability/python/distributions/lkj_test.py +++ b/tensorflow_probability/python/distributions/lkj_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for the LKJ distribution.""" -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/logistic.py b/tensorflow_probability/python/distributions/logistic.py index f588915763..0aaf7eb242 100644 --- a/tensorflow_probability/python/distributions/logistic.py +++ b/tensorflow_probability/python/distributions/logistic.py @@ -14,7 +14,6 @@ # ============================================================================ """The Logistic distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/logistic_test.py b/tensorflow_probability/python/distributions/logistic_test.py index 5b44ae35d3..1efe60e755 100644 --- a/tensorflow_probability/python/distributions/logistic_test.py +++ b/tensorflow_probability/python/distributions/logistic_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for initializers.""" -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/logitnormal_test.py b/tensorflow_probability/python/distributions/logitnormal_test.py index ea3665821f..f0244470f8 100644 --- a/tensorflow_probability/python/distributions/logitnormal_test.py +++ b/tensorflow_probability/python/distributions/logitnormal_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for LogitNormal.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/loglogistic_test.py b/tensorflow_probability/python/distributions/loglogistic_test.py index 83ebe6db89..90fc5e419e 100644 --- a/tensorflow_probability/python/distributions/loglogistic_test.py +++ b/tensorflow_probability/python/distributions/loglogistic_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for LogLogistic.""" -# Dependency imports - import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/lognormal_test.py b/tensorflow_probability/python/distributions/lognormal_test.py index a784b22ca4..3d346b720e 100644 --- a/tensorflow_probability/python/distributions/lognormal_test.py +++ b/tensorflow_probability/python/distributions/lognormal_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for LogNormal.""" -# Dependency imports - import numpy as np from scipy import stats as sp_stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/masked_test.py b/tensorflow_probability/python/distributions/masked_test.py index a0d67fb365..7dbde51e05 100644 --- a/tensorflow_probability/python/distributions/masked_test.py +++ b/tensorflow_probability/python/distributions/masked_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for masked.Masked.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import distribution diff --git a/tensorflow_probability/python/distributions/matrix_normal_linear_operator_test.py b/tensorflow_probability/python/distributions/matrix_normal_linear_operator_test.py index e78e49175e..00199e7702 100644 --- a/tensorflow_probability/python/distributions/matrix_normal_linear_operator_test.py +++ b/tensorflow_probability/python/distributions/matrix_normal_linear_operator_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for MatrixNormalLinearOperator.""" -# Dependency imports - from absl.testing import parameterized import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/matrix_t_linear_operator_test.py b/tensorflow_probability/python/distributions/matrix_t_linear_operator_test.py index 6856354031..1b35af805d 100644 --- a/tensorflow_probability/python/distributions/matrix_t_linear_operator_test.py +++ b/tensorflow_probability/python/distributions/matrix_t_linear_operator_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for MatrixTLinearOperator.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import shift diff --git a/tensorflow_probability/python/distributions/mixture.py b/tensorflow_probability/python/distributions/mixture.py index 9f1d4a99fb..95ef55a2d9 100644 --- a/tensorflow_probability/python/distributions/mixture.py +++ b/tensorflow_probability/python/distributions/mixture.py @@ -16,7 +16,6 @@ import warnings -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import categorical diff --git a/tensorflow_probability/python/distributions/mixture_same_family_test.py b/tensorflow_probability/python/distributions/mixture_same_family_test.py index 062889f599..90c2eb5ce4 100644 --- a/tensorflow_probability/python/distributions/mixture_same_family_test.py +++ b/tensorflow_probability/python/distributions/mixture_same_family_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for MixtureSameFamily distribution.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/mixture_test.py b/tensorflow_probability/python/distributions/mixture_test.py index f1ec78299d..8faeb6b43b 100644 --- a/tensorflow_probability/python/distributions/mixture_test.py +++ b/tensorflow_probability/python/distributions/mixture_test.py @@ -17,7 +17,6 @@ import contextlib import warnings -# Dependency imports import numpy as np from scipy import stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/moyal.py b/tensorflow_probability/python/distributions/moyal.py index 23bc1d3881..2b7df8b147 100644 --- a/tensorflow_probability/python/distributions/moyal.py +++ b/tensorflow_probability/python/distributions/moyal.py @@ -14,7 +14,6 @@ # ============================================================================ """The Moyal distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/moyal_test.py b/tensorflow_probability/python/distributions/moyal_test.py index e2f508456d..b9354769ba 100644 --- a/tensorflow_probability/python/distributions/moyal_test.py +++ b/tensorflow_probability/python/distributions/moyal_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Moyal.""" -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/multinomial_test.py b/tensorflow_probability/python/distributions/multinomial_test.py index 9f99510526..56b89bdc13 100644 --- a/tensorflow_probability/python/distributions/multinomial_test.py +++ b/tensorflow_probability/python/distributions/multinomial_test.py @@ -14,7 +14,6 @@ # ============================================================================ import unittest -# Dependency imports from absl.testing import parameterized import hypothesis as hp from hypothesis import strategies as hps diff --git a/tensorflow_probability/python/distributions/multivariate_student_t_test.py b/tensorflow_probability/python/distributions/multivariate_student_t_test.py index 619b68a43a..212a7ee879 100644 --- a/tensorflow_probability/python/distributions/multivariate_student_t_test.py +++ b/tensorflow_probability/python/distributions/multivariate_student_t_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for the MultivariateStudentTLinearOperator.""" -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_covariance_test.py b/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_covariance_test.py index 45bf0b8437..adca55e7ec 100644 --- a/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_covariance_test.py +++ b/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_covariance_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for MultivariateNormalDiagPlusLowRankCovariance.""" -# Dependency imports - import numpy as np from tensorflow_probability.python.distributions import mvn_diag_plus_low_rank_covariance as mvdplrc from tensorflow_probability.python.internal import test_util diff --git a/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_test.py b/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_test.py index 9a901d6694..35cbf29154 100644 --- a/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_test.py +++ b/tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for MultivariateNormal.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/mvn_diag_test.py b/tensorflow_probability/python/distributions/mvn_diag_test.py index 2f77ff8370..0aaf1b32cd 100644 --- a/tensorflow_probability/python/distributions/mvn_diag_test.py +++ b/tensorflow_probability/python/distributions/mvn_diag_test.py @@ -16,7 +16,6 @@ import os -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/mvn_full_covariance_test.py b/tensorflow_probability/python/distributions/mvn_full_covariance_test.py index 09923fa9be..7868ad40e6 100644 --- a/tensorflow_probability/python/distributions/mvn_full_covariance_test.py +++ b/tensorflow_probability/python/distributions/mvn_full_covariance_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for MultivariateNormalFullCovariance.""" -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/mvn_linear_operator_test.py b/tensorflow_probability/python/distributions/mvn_linear_operator_test.py index 6f3395c5ae..f036785e79 100644 --- a/tensorflow_probability/python/distributions/mvn_linear_operator_test.py +++ b/tensorflow_probability/python/distributions/mvn_linear_operator_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for MultivariateNormalLinearOperator.""" -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/mvn_low_rank_update_linear_operator_covariance_test.py b/tensorflow_probability/python/distributions/mvn_low_rank_update_linear_operator_covariance_test.py index 9dbeac4c4a..cf98bf7a34 100644 --- a/tensorflow_probability/python/distributions/mvn_low_rank_update_linear_operator_covariance_test.py +++ b/tensorflow_probability/python/distributions/mvn_low_rank_update_linear_operator_covariance_test.py @@ -16,8 +16,6 @@ import collections -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/mvn_tril_test.py b/tensorflow_probability/python/distributions/mvn_tril_test.py index 3f990b8e44..589a359956 100644 --- a/tensorflow_probability/python/distributions/mvn_tril_test.py +++ b/tensorflow_probability/python/distributions/mvn_tril_test.py @@ -16,8 +16,6 @@ import os -# Dependency imports - from absl.testing import parameterized import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/negative_binomial_test.py b/tensorflow_probability/python/distributions/negative_binomial_test.py index 94c9ae54de..faad94348c 100644 --- a/tensorflow_probability/python/distributions/negative_binomial_test.py +++ b/tensorflow_probability/python/distributions/negative_binomial_test.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/normal.py b/tensorflow_probability/python/distributions/normal.py index 8d2ccdd901..5a85ed425b 100644 --- a/tensorflow_probability/python/distributions/normal.py +++ b/tensorflow_probability/python/distributions/normal.py @@ -14,7 +14,6 @@ # ============================================================================ """The Normal (Gaussian) distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/normal_inverse_gaussian.py b/tensorflow_probability/python/distributions/normal_inverse_gaussian.py index 57e3fb9ba2..b79037b10a 100644 --- a/tensorflow_probability/python/distributions/normal_inverse_gaussian.py +++ b/tensorflow_probability/python/distributions/normal_inverse_gaussian.py @@ -14,7 +14,6 @@ # ============================================================================ """The NormalInverseGaussian distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/normal_test.py b/tensorflow_probability/python/distributions/normal_test.py index 1216a5634f..98848262b1 100644 --- a/tensorflow_probability/python/distributions/normal_test.py +++ b/tensorflow_probability/python/distributions/normal_test.py @@ -16,8 +16,6 @@ import math -# Dependency imports - import numpy as np from scipy import stats as sp_stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/onehot_categorical_test.py b/tensorflow_probability/python/distributions/onehot_categorical_test.py index a53929a6df..c7c3507d18 100644 --- a/tensorflow_probability/python/distributions/onehot_categorical_test.py +++ b/tensorflow_probability/python/distributions/onehot_categorical_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for OneHotCategorical distribution.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/ordered_logistic_test.py b/tensorflow_probability/python/distributions/ordered_logistic_test.py index 5bdb90e878..c507365444 100644 --- a/tensorflow_probability/python/distributions/ordered_logistic_test.py +++ b/tensorflow_probability/python/distributions/ordered_logistic_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ import itertools -# Dependency imports from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/pareto.py b/tensorflow_probability/python/distributions/pareto.py index 4144cca4d3..ec11df400c 100644 --- a/tensorflow_probability/python/distributions/pareto.py +++ b/tensorflow_probability/python/distributions/pareto.py @@ -14,7 +14,6 @@ # ============================================================================ """The Pareto distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/pareto_test.py b/tensorflow_probability/python/distributions/pareto_test.py index 687f4343f0..9cac9ffb97 100644 --- a/tensorflow_probability/python/distributions/pareto_test.py +++ b/tensorflow_probability/python/distributions/pareto_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/pert.py b/tensorflow_probability/python/distributions/pert.py index f5a289e20e..6828661965 100644 --- a/tensorflow_probability/python/distributions/pert.py +++ b/tensorflow_probability/python/distributions/pert.py @@ -14,7 +14,6 @@ # ============================================================================ """The PERT distribution.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain as chain_bijector diff --git a/tensorflow_probability/python/distributions/pert_test.py b/tensorflow_probability/python/distributions/pert_test.py index b7040a5835..3463f109ad 100644 --- a/tensorflow_probability/python/distributions/pert_test.py +++ b/tensorflow_probability/python/distributions/pert_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for the PERT distribution.""" -# Dependency imports import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/pixel_cnn_test.py b/tensorflow_probability/python/distributions/pixel_cnn_test.py index a035a61c18..25d99cbfce 100644 --- a/tensorflow_probability/python/distributions/pixel_cnn_test.py +++ b/tensorflow_probability/python/distributions/pixel_cnn_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Pixel CNN++ distribution.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/poisson_lognormal.py b/tensorflow_probability/python/distributions/poisson_lognormal.py index 76203f6024..60c894c595 100644 --- a/tensorflow_probability/python/distributions/poisson_lognormal.py +++ b/tensorflow_probability/python/distributions/poisson_lognormal.py @@ -14,7 +14,6 @@ # ============================================================================ """The PoissonLogNormalQuadratureCompound distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/poisson_test.py b/tensorflow_probability/python/distributions/poisson_test.py index ee5588381d..dca44013ed 100644 --- a/tensorflow_probability/python/distributions/poisson_test.py +++ b/tensorflow_probability/python/distributions/poisson_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/power_spherical_test.py b/tensorflow_probability/python/distributions/power_spherical_test.py index 52ea260480..567e2fb5d3 100644 --- a/tensorflow_probability/python/distributions/power_spherical_test.py +++ b/tensorflow_probability/python/distributions/power_spherical_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for multivariate Power Spherical distribution.""" -# Dependency imports import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/distributions/probit_bernoulli_test.py b/tensorflow_probability/python/distributions/probit_bernoulli_test.py index 74c7800a2d..93b0d84d0f 100644 --- a/tensorflow_probability/python/distributions/probit_bernoulli_test.py +++ b/tensorflow_probability/python/distributions/probit_bernoulli_test.py @@ -15,7 +15,6 @@ """Tests for the ProbitBernoulli distribution.""" -# Dependency imports import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/distributions/quantized_distribution.py b/tensorflow_probability/python/distributions/quantized_distribution.py index a6cc4b0c8c..d484b1c327 100644 --- a/tensorflow_probability/python/distributions/quantized_distribution.py +++ b/tensorflow_probability/python/distributions/quantized_distribution.py @@ -14,7 +14,6 @@ # ============================================================================ """Quantized distribution.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/quantized_distribution_test.py b/tensorflow_probability/python/distributions/quantized_distribution_test.py index bcb7860ff4..1ac26141a4 100644 --- a/tensorflow_probability/python/distributions/quantized_distribution_test.py +++ b/tensorflow_probability/python/distributions/quantized_distribution_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats diff --git a/tensorflow_probability/python/distributions/relaxed_bernoulli_test.py b/tensorflow_probability/python/distributions/relaxed_bernoulli_test.py index 4570ddf70a..d79695d4e9 100644 --- a/tensorflow_probability/python/distributions/relaxed_bernoulli_test.py +++ b/tensorflow_probability/python/distributions/relaxed_bernoulli_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for the RelaxedBernoulli distribution.""" -# Dependency imports - import numpy as np import scipy.special import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/relaxed_onehot_categorical.py b/tensorflow_probability/python/distributions/relaxed_onehot_categorical.py index c28e5bdbc7..4cf70cd90e 100644 --- a/tensorflow_probability/python/distributions/relaxed_onehot_categorical.py +++ b/tensorflow_probability/python/distributions/relaxed_onehot_categorical.py @@ -14,7 +14,6 @@ # ============================================================================ """Relaxed OneHotCategorical distribution classes.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain as chain_bijector diff --git a/tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py b/tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py index 6799e6dfbc..27c01dd45d 100644 --- a/tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py +++ b/tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Relaxed One-Hot Categorical distribution.""" -# Dependency imports - from absl.testing import parameterized import numpy as np from scipy.special import gamma diff --git a/tensorflow_probability/python/distributions/sample.py b/tensorflow_probability/python/distributions/sample.py index 40f2cf05ab..e3fc6b6ea4 100644 --- a/tensorflow_probability/python/distributions/sample.py +++ b/tensorflow_probability/python/distributions/sample.py @@ -16,7 +16,6 @@ import functools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/sample_test.py b/tensorflow_probability/python/distributions/sample_test.py index 629fbc18a3..911f90b6df 100644 --- a/tensorflow_probability/python/distributions/sample_test.py +++ b/tensorflow_probability/python/distributions/sample_test.py @@ -17,8 +17,6 @@ import functools import os -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/sigmoid_beta.py b/tensorflow_probability/python/distributions/sigmoid_beta.py index 92392be1dd..80ab16abb1 100644 --- a/tensorflow_probability/python/distributions/sigmoid_beta.py +++ b/tensorflow_probability/python/distributions/sigmoid_beta.py @@ -14,7 +14,6 @@ # ============================================================================ """The SigmoidBeta distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import identity as identity_bijector diff --git a/tensorflow_probability/python/distributions/sigmoid_beta_test.py b/tensorflow_probability/python/distributions/sigmoid_beta_test.py index d1186eb14f..9260b2dd3e 100644 --- a/tensorflow_probability/python/distributions/sigmoid_beta_test.py +++ b/tensorflow_probability/python/distributions/sigmoid_beta_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/sinh_arcsinh_test.py b/tensorflow_probability/python/distributions/sinh_arcsinh_test.py index 93cbcf6627..2d5e1597f7 100644 --- a/tensorflow_probability/python/distributions/sinh_arcsinh_test.py +++ b/tensorflow_probability/python/distributions/sinh_arcsinh_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for SinhArcsinh.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/skellam_test.py b/tensorflow_probability/python/distributions/skellam_test.py index 42eaa839cb..f8421dc8cf 100644 --- a/tensorflow_probability/python/distributions/skellam_test.py +++ b/tensorflow_probability/python/distributions/skellam_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/spherical_uniform_test.py b/tensorflow_probability/python/distributions/spherical_uniform_test.py index eba1f89811..1172aa5884 100644 --- a/tensorflow_probability/python/distributions/spherical_uniform_test.py +++ b/tensorflow_probability/python/distributions/spherical_uniform_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for the spherical uniform distribution.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/stopping_ratio_logistic_test.py b/tensorflow_probability/python/distributions/stopping_ratio_logistic_test.py index f04bffa344..23c52520eb 100644 --- a/tensorflow_probability/python/distributions/stopping_ratio_logistic_test.py +++ b/tensorflow_probability/python/distributions/stopping_ratio_logistic_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ import itertools -# Dependency imports from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/student_t.py b/tensorflow_probability/python/distributions/student_t.py index 6825f5f71f..2266fbad44 100644 --- a/tensorflow_probability/python/distributions/student_t.py +++ b/tensorflow_probability/python/distributions/student_t.py @@ -16,7 +16,6 @@ import functools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/student_t_process.py b/tensorflow_probability/python/distributions/student_t_process.py index f19c0346af..fc3718c0da 100644 --- a/tensorflow_probability/python/distributions/student_t_process.py +++ b/tensorflow_probability/python/distributions/student_t_process.py @@ -17,7 +17,6 @@ import functools import warnings -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/student_t_process_regression_model.py b/tensorflow_probability/python/distributions/student_t_process_regression_model.py index a1f6a2f65b..725a119f2a 100644 --- a/tensorflow_probability/python/distributions/student_t_process_regression_model.py +++ b/tensorflow_probability/python/distributions/student_t_process_regression_model.py @@ -14,7 +14,6 @@ # ============================================================================ """The StudentTProcessRegressionModel distribution class.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python import util as tfp_util diff --git a/tensorflow_probability/python/distributions/student_t_process_regression_model_test.py b/tensorflow_probability/python/distributions/student_t_process_regression_model_test.py index 1ef27dd807..fd4fd768d0 100644 --- a/tensorflow_probability/python/distributions/student_t_process_regression_model_test.py +++ b/tensorflow_probability/python/distributions/student_t_process_regression_model_test.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ from unittest import mock -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import gaussian_process_regression_model as gprm diff --git a/tensorflow_probability/python/distributions/student_t_process_test.py b/tensorflow_probability/python/distributions/student_t_process_test.py index b1ee6285dc..c673ddb7be 100644 --- a/tensorflow_probability/python/distributions/student_t_process_test.py +++ b/tensorflow_probability/python/distributions/student_t_process_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/student_t_test.py b/tensorflow_probability/python/distributions/student_t_test.py index c90627de99..b1bf6219e4 100644 --- a/tensorflow_probability/python/distributions/student_t_test.py +++ b/tensorflow_probability/python/distributions/student_t_test.py @@ -17,7 +17,6 @@ import itertools import math -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/distributions/transformed_distribution_test.py b/tensorflow_probability/python/distributions/transformed_distribution_test.py index 3076040611..cbc02404a2 100644 --- a/tensorflow_probability/python/distributions/transformed_distribution_test.py +++ b/tensorflow_probability/python/distributions/transformed_distribution_test.py @@ -16,7 +16,6 @@ import copy -# Dependency imports from absl.testing import parameterized # pylint: disable=unused-import import numpy as np diff --git a/tensorflow_probability/python/distributions/triangular.py b/tensorflow_probability/python/distributions/triangular.py index 1b3c2b0c05..5991a44b29 100644 --- a/tensorflow_probability/python/distributions/triangular.py +++ b/tensorflow_probability/python/distributions/triangular.py @@ -14,7 +14,6 @@ # ============================================================================ """The Triangular distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/triangular_test.py b/tensorflow_probability/python/distributions/triangular_test.py index b68afd8a29..8bbd330b33 100644 --- a/tensorflow_probability/python/distributions/triangular_test.py +++ b/tensorflow_probability/python/distributions/triangular_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/truncated_cauchy.py b/tensorflow_probability/python/distributions/truncated_cauchy.py index 831965fe3a..342e069e36 100644 --- a/tensorflow_probability/python/distributions/truncated_cauchy.py +++ b/tensorflow_probability/python/distributions/truncated_cauchy.py @@ -14,7 +14,6 @@ # ============================================================================ """The Truncated Cauchy distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/truncated_cauchy_test.py b/tensorflow_probability/python/distributions/truncated_cauchy_test.py index a6de359e5a..572417ec40 100644 --- a/tensorflow_probability/python/distributions/truncated_cauchy_test.py +++ b/tensorflow_probability/python/distributions/truncated_cauchy_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for TruncatedCauchy.""" -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/truncated_normal.py b/tensorflow_probability/python/distributions/truncated_normal.py index ee5a5ca964..60989e4119 100644 --- a/tensorflow_probability/python/distributions/truncated_normal.py +++ b/tensorflow_probability/python/distributions/truncated_normal.py @@ -14,7 +14,6 @@ # ============================================================================ """The Truncated Normal distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/truncated_normal_test.py b/tensorflow_probability/python/distributions/truncated_normal_test.py index cb7019ad59..f818a3318e 100644 --- a/tensorflow_probability/python/distributions/truncated_normal_test.py +++ b/tensorflow_probability/python/distributions/truncated_normal_test.py @@ -17,7 +17,6 @@ import itertools import unittest -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/two_piece_normal.py b/tensorflow_probability/python/distributions/two_piece_normal.py index 36d98dc730..78863f1524 100644 --- a/tensorflow_probability/python/distributions/two_piece_normal.py +++ b/tensorflow_probability/python/distributions/two_piece_normal.py @@ -14,7 +14,6 @@ # ============================================================================ """The Two-Piece Normal distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/two_piece_normal_test.py b/tensorflow_probability/python/distributions/two_piece_normal_test.py index 7e04c0c80b..6829293834 100644 --- a/tensorflow_probability/python/distributions/two_piece_normal_test.py +++ b/tensorflow_probability/python/distributions/two_piece_normal_test.py @@ -16,7 +16,6 @@ import itertools -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/two_piece_student_t.py b/tensorflow_probability/python/distributions/two_piece_student_t.py index 943a6d6d3b..bf65e54f98 100644 --- a/tensorflow_probability/python/distributions/two_piece_student_t.py +++ b/tensorflow_probability/python/distributions/two_piece_student_t.py @@ -14,7 +14,6 @@ # ============================================================================ """The Two-Piece Student's t-distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/two_piece_student_t_test.py b/tensorflow_probability/python/distributions/two_piece_student_t_test.py index 8cdda5d3b3..8bdacbb50d 100644 --- a/tensorflow_probability/python/distributions/two_piece_student_t_test.py +++ b/tensorflow_probability/python/distributions/two_piece_student_t_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Two-Piece Student's t-distribution.""" -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/uniform_test.py b/tensorflow_probability/python/distributions/uniform_test.py index 4483193a68..8180b1d240 100644 --- a/tensorflow_probability/python/distributions/uniform_test.py +++ b/tensorflow_probability/python/distributions/uniform_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Uniform distribution.""" -# Dependency imports - import numpy as np from scipy import stats as sp_stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/variational_gaussian_process_test.py b/tensorflow_probability/python/distributions/variational_gaussian_process_test.py index 5004afdf21..a0c339d404 100644 --- a/tensorflow_probability/python/distributions/variational_gaussian_process_test.py +++ b/tensorflow_probability/python/distributions/variational_gaussian_process_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for VariationalGaussianProcess.""" -# Dependency imports - from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/distributions/von_mises.py b/tensorflow_probability/python/distributions/von_mises.py index f959312e88..213457a407 100644 --- a/tensorflow_probability/python/distributions/von_mises.py +++ b/tensorflow_probability/python/distributions/von_mises.py @@ -14,7 +14,6 @@ # ============================================================================ """The von Mises distribution class.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/von_mises_fisher_test.py b/tensorflow_probability/python/distributions/von_mises_fisher_test.py index ff7b25eb96..94eaf84e46 100644 --- a/tensorflow_probability/python/distributions/von_mises_fisher_test.py +++ b/tensorflow_probability/python/distributions/von_mises_fisher_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for multivariate von Mises-Fisher distribution.""" -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/distributions/von_mises_test.py b/tensorflow_probability/python/distributions/von_mises_test.py index b6834eaa3f..20cfc9e0ab 100644 --- a/tensorflow_probability/python/distributions/von_mises_test.py +++ b/tensorflow_probability/python/distributions/von_mises_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for the von Mises distribution.""" -# Dependency imports import numpy as np from scipy import special as sp_special from scipy import stats as sp_stats diff --git a/tensorflow_probability/python/distributions/weibull.py b/tensorflow_probability/python/distributions/weibull.py index ecccef6347..2ed0b8e8f0 100644 --- a/tensorflow_probability/python/distributions/weibull.py +++ b/tensorflow_probability/python/distributions/weibull.py @@ -14,8 +14,6 @@ # ============================================================================ """The Weibull distribution class.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import invert as invert_bijector diff --git a/tensorflow_probability/python/distributions/weibull_test.py b/tensorflow_probability/python/distributions/weibull_test.py index 3559639c49..2248f9a4ff 100644 --- a/tensorflow_probability/python/distributions/weibull_test.py +++ b/tensorflow_probability/python/distributions/weibull_test.py @@ -15,8 +15,6 @@ """Tests for Weibull distribution.""" import math -# Dependency imports - import numpy as np from scipy import stats import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/wishart.py b/tensorflow_probability/python/distributions/wishart.py index 1175adc9b6..4496ec2104 100644 --- a/tensorflow_probability/python/distributions/wishart.py +++ b/tensorflow_probability/python/distributions/wishart.py @@ -15,7 +15,6 @@ """The Wishart distribution class.""" import math -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/distributions/wishart_test.py b/tensorflow_probability/python/distributions/wishart_test.py index 5f6dcde015..e8c72f2d51 100644 --- a/tensorflow_probability/python/distributions/wishart_test.py +++ b/tensorflow_probability/python/distributions/wishart_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Wishart.""" -# Dependency imports - import numpy as np from scipy import linalg import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/distributions/zipf_test.py b/tensorflow_probability/python/distributions/zipf_test.py index 70f79b8a5c..14b1db1685 100644 --- a/tensorflow_probability/python/distributions/zipf_test.py +++ b/tensorflow_probability/python/distributions/zipf_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import stats import tensorflow.compat.v2 as tf