diff --git a/merlion/models/anomaly/change_point/__init__.py b/merlion/models/anomaly/change_point/__init__.py index 6e28f3dcd..b2b72b95c 100644 --- a/merlion/models/anomaly/change_point/__init__.py +++ b/merlion/models/anomaly/change_point/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/models/anomaly/forecast_based/arima.py b/merlion/models/anomaly/forecast_based/arima.py index 2e8188e1b..f7539908d 100644 --- a/merlion/models/anomaly/forecast_based/arima.py +++ b/merlion/models/anomaly/forecast_based/arima.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/models/anomaly/forecast_based/ets.py b/merlion/models/anomaly/forecast_based/ets.py index 4d2de91d3..fff0b7c17 100644 --- a/merlion/models/anomaly/forecast_based/ets.py +++ b/merlion/models/anomaly/forecast_based/ets.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/models/anomaly/forecast_based/sarima.py b/merlion/models/anomaly/forecast_based/sarima.py index a92b0e607..0c7aeeb9e 100644 --- a/merlion/models/anomaly/forecast_based/sarima.py +++ b/merlion/models/anomaly/forecast_based/sarima.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/models/ensemble/__init__.py b/merlion/models/ensemble/__init__.py index f054705cd..64121d30e 100644 --- a/merlion/models/ensemble/__init__.py +++ b/merlion/models/ensemble/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/post_process/base.py b/merlion/post_process/base.py index cc81a8b6a..14d21ec2d 100644 --- a/merlion/post_process/base.py +++ b/merlion/post_process/base.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/post_process/calibrate.py b/merlion/post_process/calibrate.py index b2c0d9603..44c0b71af 100644 --- a/merlion/post_process/calibrate.py +++ b/merlion/post_process/calibrate.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/post_process/factory.py b/merlion/post_process/factory.py index 78e3c51a3..e2216ddc8 100644 --- a/merlion/post_process/factory.py +++ b/merlion/post_process/factory.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/post_process/sequence.py b/merlion/post_process/sequence.py index 4a3e5f13d..a39b533f9 100644 --- a/merlion/post_process/sequence.py +++ b/merlion/post_process/sequence.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/post_process/threshold.py b/merlion/post_process/threshold.py index 7ed70a534..522f1773b 100644 --- a/merlion/post_process/threshold.py +++ b/merlion/post_process/threshold.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/transform/bound.py b/merlion/transform/bound.py index 390ea85ca..86af6764a 100644 --- a/merlion/transform/bound.py +++ b/merlion/transform/bound.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/merlion/utils/resample.py b/merlion/utils/resample.py index d1e76f002..2478539d0 100644 --- a/merlion/utils/resample.py +++ b/merlion/utils/resample.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -152,7 +152,7 @@ def infer_granularity(time_stamps, return_offset=False): return (freq, offset) if return_offset else freq # Otherwise, start with the most commonly occurring timedelta - dt = pd.to_timedelta(min(scipy.stats.mode(orig_t[1:] - orig_t[:-1], axis=None)[0])) + dt = pd.to_timedelta(scipy.stats.mode(orig_t[1:] - orig_t[:-1], axis=None)[0].item()) # Check if the data could be sampled at a k-monthly granularity. candidate_freqs = [dt] diff --git a/setup.py b/setup.py index b785a070e..50af63fcc 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -47,7 +47,7 @@ def read_file(fname): setup( name="salesforce-merlion", - version="2.0.0", + version="2.0.1", author=", ".join(read_file("AUTHORS.md").split("\n")), author_email="abhatnagar@salesforce.com", description="Merlion: A Machine Learning Framework for Time Series Intelligence", diff --git a/tests/anomaly/__init__.py b/tests/anomaly/__init__.py index f34b13dbf..5b913d9ad 100644 --- a/tests/anomaly/__init__.py +++ b/tests/anomaly/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/forecast_based/__init__.py b/tests/anomaly/forecast_based/__init__.py index f34b13dbf..5b913d9ad 100644 --- a/tests/anomaly/forecast_based/__init__.py +++ b/tests/anomaly/forecast_based/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/forecast_based/test_arima.py b/tests/anomaly/forecast_based/test_arima.py index 1b1151d8f..ddb442bee 100644 --- a/tests/anomaly/forecast_based/test_arima.py +++ b/tests/anomaly/forecast_based/test_arima.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/forecast_based/test_mses.py b/tests/anomaly/forecast_based/test_mses.py index 4e163c663..25766a4ac 100644 --- a/tests/anomaly/forecast_based/test_mses.py +++ b/tests/anomaly/forecast_based/test_mses.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/forecast_based/test_prophet.py b/tests/anomaly/forecast_based/test_prophet.py index 59d53b93c..43d65712d 100644 --- a/tests/anomaly/forecast_based/test_prophet.py +++ b/tests/anomaly/forecast_based/test_prophet.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/forecast_based/test_sarima.py b/tests/anomaly/forecast_based/test_sarima.py index 4877d9e65..4679da590 100644 --- a/tests/anomaly/forecast_based/test_sarima.py +++ b/tests/anomaly/forecast_based/test_sarima.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/multivariate/test_autoencoder.py b/tests/anomaly/multivariate/test_autoencoder.py index c68994181..381d1e9d9 100644 --- a/tests/anomaly/multivariate/test_autoencoder.py +++ b/tests/anomaly/multivariate/test_autoencoder.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/multivariate/test_dagmm.py b/tests/anomaly/multivariate/test_dagmm.py index 158d4c0a0..f4860d84a 100644 --- a/tests/anomaly/multivariate/test_dagmm.py +++ b/tests/anomaly/multivariate/test_dagmm.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/multivariate/test_lstmed.py b/tests/anomaly/multivariate/test_lstmed.py index 65937f412..bc5502ac6 100644 --- a/tests/anomaly/multivariate/test_lstmed.py +++ b/tests/anomaly/multivariate/test_lstmed.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/multivariate/test_vae.py b/tests/anomaly/multivariate/test_vae.py index b346acd79..f86214772 100644 --- a/tests/anomaly/multivariate/test_vae.py +++ b/tests/anomaly/multivariate/test_vae.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_anom_ensemble.py b/tests/anomaly/test_anom_ensemble.py index e91db3008..34ed9b50e 100644 --- a/tests/anomaly/test_anom_ensemble.py +++ b/tests/anomaly/test_anom_ensemble.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_dbl.py b/tests/anomaly/test_dbl.py index 130219e18..a53fd2dda 100644 --- a/tests/anomaly/test_dbl.py +++ b/tests/anomaly/test_dbl.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_default.py b/tests/anomaly/test_default.py index 596e393bd..5d435a28a 100644 --- a/tests/anomaly/test_default.py +++ b/tests/anomaly/test_default.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_dpad.py b/tests/anomaly/test_dpad.py index f917e988c..b36621571 100644 --- a/tests/anomaly/test_dpad.py +++ b/tests/anomaly/test_dpad.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_isolation_forest.py b/tests/anomaly/test_isolation_forest.py index 89a060549..5b6c551e8 100644 --- a/tests/anomaly/test_isolation_forest.py +++ b/tests/anomaly/test_isolation_forest.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_random_cut_forest.py b/tests/anomaly/test_random_cut_forest.py index 7ad6e0665..f9eaf67f2 100644 --- a/tests/anomaly/test_random_cut_forest.py +++ b/tests/anomaly/test_random_cut_forest.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_spectral_residual.py b/tests/anomaly/test_spectral_residual.py index d6975ac05..837ae046d 100644 --- a/tests/anomaly/test_spectral_residual.py +++ b/tests/anomaly/test_spectral_residual.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_stat_threshold.py b/tests/anomaly/test_stat_threshold.py index ea8ef74c0..8df8c2eab 100644 --- a/tests/anomaly/test_stat_threshold.py +++ b/tests/anomaly/test_stat_threshold.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_windstats.py b/tests/anomaly/test_windstats.py index 28b11fb1d..5709af20f 100644 --- a/tests/anomaly/test_windstats.py +++ b/tests/anomaly/test_windstats.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/anomaly/test_zms.py b/tests/anomaly/test_zms.py index 39dcf7cb3..1729f79eb 100644 --- a/tests/anomaly/test_zms.py +++ b/tests/anomaly/test_zms.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/change_point/__init__.py b/tests/change_point/__init__.py index f34b13dbf..5b913d9ad 100644 --- a/tests/change_point/__init__.py +++ b/tests/change_point/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/change_point/test_bocpd.py b/tests/change_point/test_bocpd.py index 7f2f81fdf..6a7ee6b74 100644 --- a/tests/change_point/test_bocpd.py +++ b/tests/change_point/test_bocpd.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/change_point/test_conj_prior.py b/tests/change_point/test_conj_prior.py index 923ff5f66..a761452f4 100644 --- a/tests/change_point/test_conj_prior.py +++ b/tests/change_point/test_conj_prior.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/evaluate/__init__.py b/tests/evaluate/__init__.py index f34b13dbf..5b913d9ad 100644 --- a/tests/evaluate/__init__.py +++ b/tests/evaluate/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/evaluate/test_eval_anomaly.py b/tests/evaluate/test_eval_anomaly.py index 63b4f6b5c..86daf915d 100644 --- a/tests/evaluate/test_eval_anomaly.py +++ b/tests/evaluate/test_eval_anomaly.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/evaluate/test_eval_forecast.py b/tests/evaluate/test_eval_forecast.py index 163952fdf..c8d73f53e 100644 --- a/tests/evaluate/test_eval_forecast.py +++ b/tests/evaluate/test_eval_forecast.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/__init__.py b/tests/forecast/__init__.py index f34b13dbf..5b913d9ad 100644 --- a/tests/forecast/__init__.py +++ b/tests/forecast/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_autoets.py b/tests/forecast/test_autoets.py index b5cf09dc3..2ca1c156b 100644 --- a/tests/forecast/test_autoets.py +++ b/tests/forecast/test_autoets.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_autosarima.py b/tests/forecast/test_autosarima.py index 3f06d23c6..6a1ee9a7f 100644 --- a/tests/forecast/test_autosarima.py +++ b/tests/forecast/test_autosarima.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_baggingtrees.py b/tests/forecast/test_baggingtrees.py index a3adf8313..ad74172e8 100644 --- a/tests/forecast/test_baggingtrees.py +++ b/tests/forecast/test_baggingtrees.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -72,11 +72,7 @@ def test_forecast_multi(self): # self.assertAlmostEqual(rmse, 0.08, delta=0.1) # Check look-ahead RMSE using time_series_prev - dataset = RollingWindowDataset(self.test_data, - self.i, - self.maxlags, - self.max_forecast_steps, - ts_index=True) + dataset = RollingWindowDataset(self.test_data, self.i, self.maxlags, self.max_forecast_steps, ts_index=True) testing_instance, testing_label = next(iter(dataset)) pred, _ = self.model.forecast(testing_label.time_stamps, testing_instance) lookahead_rmse = ForecastMetric.RMSE.value(testing_label, pred, target_seq_index=self.i) @@ -102,11 +98,7 @@ def test_forecast_uni(self): self.assertAlmostEqual(rmse, 0.01, delta=0.1) # Check look-ahead RMSE using time_series_prev - dataset = RollingWindowDataset(self.test_data_uni, - self.i, - self.maxlags, - self.max_forecast_steps, - ts_index=True) + dataset = RollingWindowDataset(self.test_data_uni, self.i, self.maxlags, self.max_forecast_steps, ts_index=True) testing_instance, testing_label = next(iter(dataset)) pred, _ = self.model.forecast(testing_label.time_stamps, testing_instance) lookahead_rmse = ForecastMetric.RMSE.value(testing_label, pred, target_seq_index=self.i) diff --git a/tests/forecast/test_boostingtrees.py b/tests/forecast/test_boostingtrees.py index 0776b5f8f..a261ca03c 100644 --- a/tests/forecast/test_boostingtrees.py +++ b/tests/forecast/test_boostingtrees.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_default.py b/tests/forecast/test_default.py index c7dc16c2b..d1f41c5f5 100644 --- a/tests/forecast/test_default.py +++ b/tests/forecast/test_default.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_ets.py b/tests/forecast/test_ets.py index 4542b5089..95b5bd0f7 100644 --- a/tests/forecast/test_ets.py +++ b/tests/forecast/test_ets.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_exog.py b/tests/forecast/test_exog.py index 071f2a901..6ee939380 100644 --- a/tests/forecast/test_exog.py +++ b/tests/forecast/test_exog.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_forecast_ensemble.py b/tests/forecast/test_forecast_ensemble.py index f5409896e..b69dd98de 100644 --- a/tests/forecast/test_forecast_ensemble.py +++ b/tests/forecast/test_forecast_ensemble.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_istat.py b/tests/forecast/test_istat.py index 2f9411c29..676c8ad04 100644 --- a/tests/forecast/test_istat.py +++ b/tests/forecast/test_istat.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -68,7 +68,7 @@ def test_recency_weighted_stats(self): # rwv normal data rwv = RecencyWeightedVariance(recency_weight=1e-4) rwv.add_batch(normal_data) - self.assertAlmostEqual(245.7, rwv.value ** 0.5, places=-1) + self.assertAlmostEqual(245.7, rwv.value**0.5, places=-1) for data in self.data1, self.data2, self.data3: left, right = data[:800], data[800:] diff --git a/tests/forecast/test_prophet.py b/tests/forecast/test_prophet.py index bda2348eb..311d3ebad 100644 --- a/tests/forecast/test_prophet.py +++ b/tests/forecast/test_prophet.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_smoother.py b/tests/forecast/test_smoother.py index 7ba860a69..cbc0fbae2 100644 --- a/tests/forecast/test_smoother.py +++ b/tests/forecast/test_smoother.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/forecast/test_vector_ar.py b/tests/forecast/test_vector_ar.py index a84bd839b..e1d4a4753 100644 --- a/tests/forecast/test_vector_ar.py +++ b/tests/forecast/test_vector_ar.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/spark/__init__.py b/tests/spark/__init__.py index 599d47c29..5b913d9ad 100644 --- a/tests/spark/__init__.py +++ b/tests/spark/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/spark/conftest.py b/tests/spark/conftest.py index b5c52dbb1..880d8d288 100644 --- a/tests/spark/conftest.py +++ b/tests/spark/conftest.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/spark/test_anomaly.py b/tests/spark/test_anomaly.py index bc60d23dd..245b9e836 100644 --- a/tests/spark/test_anomaly.py +++ b/tests/spark/test_anomaly.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/spark/test_forecast.py b/tests/spark/test_forecast.py index cdbeca993..f6b08de10 100644 --- a/tests/spark/test_forecast.py +++ b/tests/spark/test_forecast.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/test_custom_dataset.py b/tests/test_custom_dataset.py index 0a4b0995c..772639007 100644 --- a/tests/test_custom_dataset.py +++ b/tests/test_custom_dataset.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/test_generator.py b/tests/test_generator.py index 5f6e6b9f8..b5a38cc66 100644 --- a/tests/test_generator.py +++ b/tests/test_generator.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -26,7 +26,7 @@ def test_generator_sequence(self): np.random.seed(1234) y_generated = GeneratorComposer( generators=[ - TimeSeriesGenerator(f=lambda x: x ** 1.3, n=3), + TimeSeriesGenerator(f=lambda x: x**1.3, n=3), TimeSeriesGenerator(f=lambda x: 4.5 / (1 + exp(-x)), scale=4.5, n=7), TimeSeriesGenerator(f=lambda x: sin(x) * sin(3 * x), n=11), ], @@ -48,7 +48,7 @@ def test_generator_series(self): np.random.seed(1234) y_generated = GeneratorConcatenator( generators=[ - TimeSeriesGenerator(f=lambda x: x ** 2, n=3, x0=0), + TimeSeriesGenerator(f=lambda x: x**2, n=3, x0=0), TimeSeriesGenerator(f=lambda x: exp(-(x % 5)), n=7, x0=10), TimeSeriesGenerator(f=lambda x: 4 * log(x), n=11, x0=-99), ], diff --git a/tests/test_hts.py b/tests/test_hts.py index 9fc05d642..85e0b7033 100644 --- a/tests/test_hts.py +++ b/tests/test_hts.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/test_plot.py b/tests/test_plot.py index 7129d0e27..0cb9c53d9 100644 --- a/tests/test_plot.py +++ b/tests/test_plot.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/transform/__init__.py b/tests/transform/__init__.py index f34b13dbf..5b913d9ad 100644 --- a/tests/transform/__init__.py +++ b/tests/transform/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/transform/test_anomalize.py b/tests/transform/test_anomalize.py index bf1011404..b3acea296 100644 --- a/tests/transform/test_anomalize.py +++ b/tests/transform/test_anomalize.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -23,7 +23,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) logger.info("Generating Data...\n") np.random.seed(111) - self.ts = TimeSeriesGenerator(f=lambda x: x ** 1.6, n=200, name="metric").generate(return_ts=True) + self.ts = TimeSeriesGenerator(f=lambda x: x**1.6, n=200, name="metric").generate(return_ts=True) def test_shock(self): print("-" * 80) diff --git a/tests/transform/test_inverse.py b/tests/transform/test_inverse.py index 91a92f9be..09dc99790 100644 --- a/tests/transform/test_inverse.py +++ b/tests/transform/test_inverse.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/transform/test_moving_average.py b/tests/transform/test_moving_average.py index 8ec6f00bd..6a2535878 100644 --- a/tests/transform/test_moving_average.py +++ b/tests/transform/test_moving_average.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/transform/test_resample.py b/tests/transform/test_resample.py index 999108091..a2bedff39 100644 --- a/tests/transform/test_resample.py +++ b/tests/transform/test_resample.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/tests/transform/test_sequence.py b/tests/transform/test_sequence.py index 77a3e9f92..38be207ee 100644 --- a/tests/transform/test_sequence.py +++ b/tests/transform/test_sequence.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/setup.py b/ts_datasets/setup.py index 48b99bb89..e9be1c3d9 100644 --- a/ts_datasets/setup.py +++ b/ts_datasets/setup.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/__init__.py b/ts_datasets/ts_datasets/__init__.py index eb1042786..fa26f5029 100644 --- a/ts_datasets/ts_datasets/__init__.py +++ b/ts_datasets/ts_datasets/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/__init__.py b/ts_datasets/ts_datasets/anomaly/__init__.py index 1d7bba19a..b162df24c 100755 --- a/ts_datasets/ts_datasets/anomaly/__init__.py +++ b/ts_datasets/ts_datasets/anomaly/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/base.py b/ts_datasets/ts_datasets/anomaly/base.py index a76a776b9..e05fe0a2f 100644 --- a/ts_datasets/ts_datasets/anomaly/base.py +++ b/ts_datasets/ts_datasets/anomaly/base.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/custom.py b/ts_datasets/ts_datasets/anomaly/custom.py index 709979c2e..0b6d565d4 100644 --- a/ts_datasets/ts_datasets/anomaly/custom.py +++ b/ts_datasets/ts_datasets/anomaly/custom.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/iops_competition.py b/ts_datasets/ts_datasets/anomaly/iops_competition.py index a2ca6017b..b36beda04 100644 --- a/ts_datasets/ts_datasets/anomaly/iops_competition.py +++ b/ts_datasets/ts_datasets/anomaly/iops_competition.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/msl.py b/ts_datasets/ts_datasets/anomaly/msl.py index b943b0456..1401d39bd 100644 --- a/ts_datasets/ts_datasets/anomaly/msl.py +++ b/ts_datasets/ts_datasets/anomaly/msl.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/nab.py b/ts_datasets/ts_datasets/anomaly/nab.py index 5902dcf53..5bb46b41e 100644 --- a/ts_datasets/ts_datasets/anomaly/nab.py +++ b/ts_datasets/ts_datasets/anomaly/nab.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -192,7 +192,7 @@ def download(self, rootdir, subsets): url = f"https://github.com/numenta/NAB/raw/master/{labelfile}" r = requests.get(url, stream=True) with open(path, "wb") as f: - for chunk in r.iter_content(chunk_size=16 * 1024 ** 2): + for chunk in r.iter_content(chunk_size=16 * 1024**2): if chunk: # filter out keep-alive new chunks f.write(chunk) f.flush() @@ -205,7 +205,7 @@ def download(self, rootdir, subsets): url = f"https://github.com/numenta/NAB/raw/master/data/{csv}" r = requests.get(url, stream=True) with open(path, "wb") as f: - for chunk in r.iter_content(chunk_size=16 * 1024 ** 2): + for chunk in r.iter_content(chunk_size=16 * 1024**2): if chunk: # filter out keep-alive new chunks f.write(chunk) f.flush() diff --git a/ts_datasets/ts_datasets/anomaly/smap.py b/ts_datasets/ts_datasets/anomaly/smap.py index aedecccb9..786c0f3f6 100644 --- a/ts_datasets/ts_datasets/anomaly/smap.py +++ b/ts_datasets/ts_datasets/anomaly/smap.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/smd.py b/ts_datasets/ts_datasets/anomaly/smd.py index f742a8164..f1d6a77ea 100644 --- a/ts_datasets/ts_datasets/anomaly/smd.py +++ b/ts_datasets/ts_datasets/anomaly/smd.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -102,7 +102,7 @@ def download(logger, datapath, url, filename): logger.info("Downloading " + url) with requests.get(url, stream=True) as r: with open(compressed_file, "wb") as f: - for chunk in r.iter_content(chunk_size=16 * 1024 ** 2): + for chunk in r.iter_content(chunk_size=16 * 1024**2): if chunk: # filter out keep-alive new chunks f.write(chunk) f.flush() diff --git a/ts_datasets/ts_datasets/anomaly/synthetic.py b/ts_datasets/ts_datasets/anomaly/synthetic.py index 05df3e72a..cbb954122 100644 --- a/ts_datasets/ts_datasets/anomaly/synthetic.py +++ b/ts_datasets/ts_datasets/anomaly/synthetic.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/anomaly/ucr.py b/ts_datasets/ts_datasets/anomaly/ucr.py index 07b4ba135..0dc06528a 100644 --- a/ts_datasets/ts_datasets/anomaly/ucr.py +++ b/ts_datasets/ts_datasets/anomaly/ucr.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -84,7 +84,7 @@ def download(self, rootdir): logger.info("Downloading " + url) with requests.get(url, stream=True) as r: with open(compressed_file, "wb") as f: - for chunk in r.iter_content(chunk_size=16 * 1024 ** 2): + for chunk in r.iter_content(chunk_size=16 * 1024**2): if chunk: # filter out keep-alive new chunks f.write(chunk) f.flush() diff --git a/ts_datasets/ts_datasets/base.py b/ts_datasets/ts_datasets/base.py index 125d247c4..6d03af7ae 100644 --- a/ts_datasets/ts_datasets/base.py +++ b/ts_datasets/ts_datasets/base.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/forecast/__init__.py b/ts_datasets/ts_datasets/forecast/__init__.py index fe3e743ca..cacd70139 100644 --- a/ts_datasets/ts_datasets/forecast/__init__.py +++ b/ts_datasets/ts_datasets/forecast/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/forecast/custom.py b/ts_datasets/ts_datasets/forecast/custom.py index 5d64d7d2b..c600821b5 100644 --- a/ts_datasets/ts_datasets/forecast/custom.py +++ b/ts_datasets/ts_datasets/forecast/custom.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/forecast/energy_power.py b/ts_datasets/ts_datasets/forecast/energy_power.py index 75c234e8b..b08f7465b 100644 --- a/ts_datasets/ts_datasets/forecast/energy_power.py +++ b/ts_datasets/ts_datasets/forecast/energy_power.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/forecast/m4.py b/ts_datasets/ts_datasets/forecast/m4.py index 79904ac35..0623e0d8f 100644 --- a/ts_datasets/ts_datasets/forecast/m4.py +++ b/ts_datasets/ts_datasets/forecast/m4.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -99,7 +99,7 @@ def download(datapath, url, name, split=None): logger.info("Downloading " + url) r = requests.get(url, stream=True) with open(file_path, "wb") as f: - for chunk in r.iter_content(chunk_size=16 * 1024 ** 2): + for chunk in r.iter_content(chunk_size=16 * 1024**2): if chunk: # filter out keep-alive new chunks f.write(chunk) f.flush() diff --git a/ts_datasets/ts_datasets/forecast/seattle_trail.py b/ts_datasets/ts_datasets/forecast/seattle_trail.py index 3d42447b8..96fdccaac 100644 --- a/ts_datasets/ts_datasets/forecast/seattle_trail.py +++ b/ts_datasets/ts_datasets/forecast/seattle_trail.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause diff --git a/ts_datasets/ts_datasets/forecast/solar_plant.py b/ts_datasets/ts_datasets/forecast/solar_plant.py index a691bc72b..52018a186 100644 --- a/ts_datasets/ts_datasets/forecast/solar_plant.py +++ b/ts_datasets/ts_datasets/forecast/solar_plant.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2021 salesforce.com, inc. +# Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause