From 95aa5199a954e7e300f975ddc253f6677170a4e5 Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 18 Nov 2024 11:45:36 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 697705744 --- .../python/experimental/distributions/increment_log_prob.py | 1 - .../experimental/distributions/multitask_gaussian_process.py | 1 - .../multitask_gaussian_process_regression_model.py | 2 -- .../multitask_gaussian_process_regression_model_test.py | 2 -- .../distributions/multitask_gaussian_process_test.py | 1 - .../distributions/mvn_precision_factor_linop_test.py | 2 -- tensorflow_probability/python/stats/leave_one_out_test.py | 1 - tensorflow_probability/python/stats/moving_stats.py | 1 - tensorflow_probability/python/stats/moving_stats_test.py | 1 - tensorflow_probability/python/stats/quantiles.py | 1 - tensorflow_probability/python/stats/quantiles_test.py | 1 - tensorflow_probability/python/stats/ranking_test.py | 2 -- tensorflow_probability/python/stats/sample_stats.py | 1 - tensorflow_probability/python/stats/sample_stats_test.py | 2 -- tensorflow_probability/python/sts/decomposition.py | 1 - tensorflow_probability/python/sts/decomposition_test.py | 2 -- tensorflow_probability/python/sts/default_model_test.py | 2 -- tensorflow_probability/python/sts/fitting_test.py | 1 - tensorflow_probability/python/sts/forecast.py | 1 - tensorflow_probability/python/sts/forecast_test.py | 2 -- tensorflow_probability/python/sts/structural_time_series.py | 1 - 21 files changed, 29 deletions(-) diff --git a/tensorflow_probability/python/experimental/distributions/increment_log_prob.py b/tensorflow_probability/python/experimental/distributions/increment_log_prob.py index 28c675d2b3..4e57eb659b 100644 --- a/tensorflow_probability/python/experimental/distributions/increment_log_prob.py +++ b/tensorflow_probability/python/experimental/distributions/increment_log_prob.py @@ -14,7 +14,6 @@ # ============================================================================ """The `IncrementLogProb` 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/experimental/distributions/multitask_gaussian_process.py b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process.py index dea9b61e4a..9609f63444 100644 --- a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process.py +++ b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process.py @@ -16,7 +16,6 @@ import functools -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import cholesky_util diff --git a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model.py b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model.py index f9a6fe3bbf..1b73d34edf 100644 --- a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model.py +++ b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model.py @@ -16,8 +16,6 @@ import functools -# Dependency imports - import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import softplus as softplus_bijector from tensorflow_probability.python.distributions import cholesky_util diff --git a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model_test.py b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model_test.py index 2a7708afe8..49f6380dae 100644 --- a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model_test.py +++ b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_regression_model_test.py @@ -15,8 +15,6 @@ """Tests for MultiTaskGaussianProcessRegressionModel.""" from unittest import mock -# Dependency imports - from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_test.py b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_test.py index e5cf7f8585..8476adadb3 100644 --- a/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_test.py +++ b/tensorflow_probability/python/experimental/distributions/multitask_gaussian_process_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for MultiTaskGaussianProcess.""" -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop_test.py b/tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop_test.py index 3c6b8f7052..de6bc1c073 100644 --- a/tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop_test.py +++ b/tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for tensorflow_probability.python.experimental.distributions.mvn_precision_factor_linop.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/leave_one_out_test.py b/tensorflow_probability/python/stats/leave_one_out_test.py index a0d10277d8..98c32d530f 100644 --- a/tensorflow_probability/python/stats/leave_one_out_test.py +++ b/tensorflow_probability/python/stats/leave_one_out_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for tensorflow_probability.python.stats.leave_one_out.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/moving_stats.py b/tensorflow_probability/python/stats/moving_stats.py index ca1916d03f..bb064a0457 100644 --- a/tensorflow_probability/python/stats/moving_stats.py +++ b/tensorflow_probability/python/stats/moving_stats.py @@ -14,7 +14,6 @@ # ============================================================================ """Functions for computing moving statistics of a value stream.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/moving_stats_test.py b/tensorflow_probability/python/stats/moving_stats_test.py index 5e8edb1827..acbc928733 100644 --- a/tensorflow_probability/python/stats/moving_stats_test.py +++ b/tensorflow_probability/python/stats/moving_stats_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for computing moving-average statistics.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/quantiles.py b/tensorflow_probability/python/stats/quantiles.py index a1840759ec..43948821ae 100644 --- a/tensorflow_probability/python/stats/quantiles.py +++ b/tensorflow_probability/python/stats/quantiles.py @@ -14,7 +14,6 @@ # ============================================================================ """Functions for computing statistics of samples.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/quantiles_test.py b/tensorflow_probability/python/stats/quantiles_test.py index d381ff4e45..2585fb57a1 100644 --- a/tensorflow_probability/python/stats/quantiles_test.py +++ b/tensorflow_probability/python/stats/quantiles_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for quantiles.py.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/ranking_test.py b/tensorflow_probability/python/stats/ranking_test.py index 9634eb5561..7f76307c61 100644 --- a/tensorflow_probability/python/stats/ranking_test.py +++ b/tensorflow_probability/python/stats/ranking_test.py @@ -13,8 +13,6 @@ # limitations under the License. """Tests for tensorflow_probability.python.stats.ranking_stats.""" -# Dependency imports - from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/stats/sample_stats.py b/tensorflow_probability/python/stats/sample_stats.py index 1c9e82166f..9142e048a2 100644 --- a/tensorflow_probability/python/stats/sample_stats.py +++ b/tensorflow_probability/python/stats/sample_stats.py @@ -14,7 +14,6 @@ # ============================================================================ """Functions for computing statistics of samples.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/stats/sample_stats_test.py b/tensorflow_probability/python/stats/sample_stats_test.py index b0e5797044..2ccd6da3f1 100644 --- a/tensorflow_probability/python/stats/sample_stats_test.py +++ b/tensorflow_probability/python/stats/sample_stats_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Sample Stats Ops.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/decomposition.py b/tensorflow_probability/python/sts/decomposition.py index aae9b3d0cc..bcc819e968 100644 --- a/tensorflow_probability/python/sts/decomposition.py +++ b/tensorflow_probability/python/sts/decomposition.py @@ -15,7 +15,6 @@ """Methods for decomposing StructuralTimeSeries models.""" import collections -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.experimental import util as tfe_util diff --git a/tensorflow_probability/python/sts/decomposition_test.py b/tensorflow_probability/python/sts/decomposition_test.py index 481dcf45a8..8cbbb0df2e 100644 --- a/tensorflow_probability/python/sts/decomposition_test.py +++ b/tensorflow_probability/python/sts/decomposition_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for STS decomposition methods.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/default_model_test.py b/tensorflow_probability/python/sts/default_model_test.py index cc5a05cb5d..c823985558 100644 --- a/tensorflow_probability/python/sts/default_model_test.py +++ b/tensorflow_probability/python/sts/default_model_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for automatically building StructuralTimeSeries models.""" -# Dependency imports - import pandas as pd import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/fitting_test.py b/tensorflow_probability/python/sts/fitting_test.py index c3554fad29..695d39cfe0 100644 --- a/tensorflow_probability/python/sts/fitting_test.py +++ b/tensorflow_probability/python/sts/fitting_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for STS fitting methods.""" -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/sts/forecast.py b/tensorflow_probability/python/sts/forecast.py index 3950b559af..bb2161727e 100644 --- a/tensorflow_probability/python/sts/forecast.py +++ b/tensorflow_probability/python/sts/forecast.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Methods for forecasting in StructuralTimeSeries models.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import categorical diff --git a/tensorflow_probability/python/sts/forecast_test.py b/tensorflow_probability/python/sts/forecast_test.py index 59d6b8319c..5a6399e38d 100644 --- a/tensorflow_probability/python/sts/forecast_test.py +++ b/tensorflow_probability/python/sts/forecast_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for STS forecasting methods.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/structural_time_series.py b/tensorflow_probability/python/sts/structural_time_series.py index 483ecd4100..f87cd41594 100644 --- a/tensorflow_probability/python/sts/structural_time_series.py +++ b/tensorflow_probability/python/sts/structural_time_series.py @@ -16,7 +16,6 @@ import collections import types -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import joint_distribution_auto_batched