From 7f32749435194c5770bb28e9f4daf20f79ddbcec Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 3 Dec 2024 11:31:54 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 702411788 --- tensorflow_probability/python/sts/components/autoregressive.py | 1 - .../sts/components/autoregressive_integrated_moving_average.py | 1 - .../python/sts/components/autoregressive_moving_average_test.py | 1 - .../python/sts/components/autoregressive_test.py | 1 - .../python/sts/components/dynamic_regression.py | 1 - .../python/sts/components/dynamic_regression_test.py | 2 -- tensorflow_probability/python/sts/components/local_level.py | 1 - .../python/sts/components/local_level_test.py | 2 -- .../python/sts/components/local_linear_trend.py | 1 - .../python/sts/components/local_linear_trend_test.py | 2 -- tensorflow_probability/python/sts/components/regression.py | 1 - tensorflow_probability/python/sts/components/regression_test.py | 2 -- tensorflow_probability/python/sts/components/seasonal.py | 1 - tensorflow_probability/python/sts/components/seasonal_test.py | 2 -- .../python/sts/components/semilocal_linear_trend.py | 1 - .../python/sts/components/semilocal_linear_trend_test.py | 2 -- tensorflow_probability/python/sts/components/smooth_seasonal.py | 1 - .../python/sts/components/smooth_seasonal_test.py | 2 -- tensorflow_probability/python/sts/components/sum.py | 1 - tensorflow_probability/python/sts/components/sum_test.py | 1 - 20 files changed, 27 deletions(-) diff --git a/tensorflow_probability/python/sts/components/autoregressive.py b/tensorflow_probability/python/sts/components/autoregressive.py index 40829547a9..8d3bf4e365 100644 --- a/tensorflow_probability/python/sts/components/autoregressive.py +++ b/tensorflow_probability/python/sts/components/autoregressive.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Autoregressive model.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/autoregressive_integrated_moving_average.py b/tensorflow_probability/python/sts/components/autoregressive_integrated_moving_average.py index 3f22b7dbfd..8c637c760c 100644 --- a/tensorflow_probability/python/sts/components/autoregressive_integrated_moving_average.py +++ b/tensorflow_probability/python/sts/components/autoregressive_integrated_moving_average.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Autoregressive integrated moving average (ARIMA) model.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/autoregressive_moving_average_test.py b/tensorflow_probability/python/sts/components/autoregressive_moving_average_test.py index a4ad324072..76909486ab 100644 --- a/tensorflow_probability/python/sts/components/autoregressive_moving_average_test.py +++ b/tensorflow_probability/python/sts/components/autoregressive_moving_average_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Autoregressive State Space Model Tests.""" -# 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/components/autoregressive_test.py b/tensorflow_probability/python/sts/components/autoregressive_test.py index de02b21129..465e3f1414 100644 --- a/tensorflow_probability/python/sts/components/autoregressive_test.py +++ b/tensorflow_probability/python/sts/components/autoregressive_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Autoregressive State Space Model Tests.""" -# 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/components/dynamic_regression.py b/tensorflow_probability/python/sts/components/dynamic_regression.py index f202afc4f4..c822bb8955 100644 --- a/tensorflow_probability/python/sts/components/dynamic_regression.py +++ b/tensorflow_probability/python/sts/components/dynamic_regression.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Dynamic Linear Regression model.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/dynamic_regression_test.py b/tensorflow_probability/python/sts/components/dynamic_regression_test.py index 4cd66dd276..a722933285 100644 --- a/tensorflow_probability/python/sts/components/dynamic_regression_test.py +++ b/tensorflow_probability/python/sts/components/dynamic_regression_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Dynamic Linear Regression State Space Model Tests.""" -# 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/components/local_level.py b/tensorflow_probability/python/sts/components/local_level.py index 84532151ec..6cfb41ee9a 100644 --- a/tensorflow_probability/python/sts/components/local_level.py +++ b/tensorflow_probability/python/sts/components/local_level.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Local Level model.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/local_level_test.py b/tensorflow_probability/python/sts/components/local_level_test.py index 2df60a399e..8099b64099 100644 --- a/tensorflow_probability/python/sts/components/local_level_test.py +++ b/tensorflow_probability/python/sts/components/local_level_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Local Linear Trend State Space Model Tests.""" -# 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/components/local_linear_trend.py b/tensorflow_probability/python/sts/components/local_linear_trend.py index e5ba3518ca..e9a61fa781 100644 --- a/tensorflow_probability/python/sts/components/local_linear_trend.py +++ b/tensorflow_probability/python/sts/components/local_linear_trend.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Local Linear Trend model.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/local_linear_trend_test.py b/tensorflow_probability/python/sts/components/local_linear_trend_test.py index 8408237dd3..6aff095d5c 100644 --- a/tensorflow_probability/python/sts/components/local_linear_trend_test.py +++ b/tensorflow_probability/python/sts/components/local_linear_trend_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Local Linear Trend State Space Model Tests.""" -# 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/components/regression.py b/tensorflow_probability/python/sts/components/regression.py index b9722efe49..b31892e393 100644 --- a/tensorflow_probability/python/sts/components/regression.py +++ b/tensorflow_probability/python/sts/components/regression.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Regression components.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import identity diff --git a/tensorflow_probability/python/sts/components/regression_test.py b/tensorflow_probability/python/sts/components/regression_test.py index dcc2ea8a6a..ab7fbdac8b 100644 --- a/tensorflow_probability/python/sts/components/regression_test.py +++ b/tensorflow_probability/python/sts/components/regression_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Regression model tests.""" -# 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/components/seasonal.py b/tensorflow_probability/python/sts/components/seasonal.py index 81b4b3a079..adc2ad4a76 100644 --- a/tensorflow_probability/python/sts/components/seasonal.py +++ b/tensorflow_probability/python/sts/components/seasonal.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Seasonal model.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/components/seasonal_test.py b/tensorflow_probability/python/sts/components/seasonal_test.py index 0aeb81e670..098ffc5b3b 100644 --- a/tensorflow_probability/python/sts/components/seasonal_test.py +++ b/tensorflow_probability/python/sts/components/seasonal_test.py @@ -16,8 +16,6 @@ import math -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/sts/components/semilocal_linear_trend.py b/tensorflow_probability/python/sts/components/semilocal_linear_trend.py index 3daf6b70c4..220d27695f 100644 --- a/tensorflow_probability/python/sts/components/semilocal_linear_trend.py +++ b/tensorflow_probability/python/sts/components/semilocal_linear_trend.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Semi-Local Linear Trend model.""" -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/semilocal_linear_trend_test.py b/tensorflow_probability/python/sts/components/semilocal_linear_trend_test.py index 34afa3ff1d..b7e9fb997f 100644 --- a/tensorflow_probability/python/sts/components/semilocal_linear_trend_test.py +++ b/tensorflow_probability/python/sts/components/semilocal_linear_trend_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Semilocal Linear Trend Model Tests.""" -# 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/components/smooth_seasonal.py b/tensorflow_probability/python/sts/components/smooth_seasonal.py index 7a94e385a8..9333f661cd 100644 --- a/tensorflow_probability/python/sts/components/smooth_seasonal.py +++ b/tensorflow_probability/python/sts/components/smooth_seasonal.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Smooth Seasonal model.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/components/smooth_seasonal_test.py b/tensorflow_probability/python/sts/components/smooth_seasonal_test.py index 750fe54aba..ae720ddea0 100644 --- a/tensorflow_probability/python/sts/components/smooth_seasonal_test.py +++ b/tensorflow_probability/python/sts/components/smooth_seasonal_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Smooth Seasonal Model Tests.""" -# 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/components/sum.py b/tensorflow_probability/python/sts/components/sum.py index d9b55c7c20..ca9e83ddaa 100644 --- a/tensorflow_probability/python/sts/components/sum.py +++ b/tensorflow_probability/python/sts/components/sum.py @@ -16,7 +16,6 @@ import collections -# Dependency imports import tensorflow.compat.v2 as tf from tensorflow_probability.python.bijectors import chain diff --git a/tensorflow_probability/python/sts/components/sum_test.py b/tensorflow_probability/python/sts/components/sum_test.py index 41d5f26ca6..d72e9045e7 100644 --- a/tensorflow_probability/python/sts/components/sum_test.py +++ b/tensorflow_probability/python/sts/components/sum_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Additive State Space Model Tests.""" -# Dependency imports from absl.testing import parameterized import numpy as np