diff --git a/kats/detectors/distribution_distance_model.py b/kats/detectors/distribution_distance_model.py index 473be4e90..d0a1fad5d 100644 --- a/kats/detectors/distribution_distance_model.py +++ b/kats/detectors/distribution_distance_model.py @@ -27,6 +27,7 @@ # Supported metrics for calculating distance # details: https://github.com/scipy/scipy/blob/v1.10.1/scipy/spatial/distance.py#L1947 +# pyre-fixme[21]: Could not find module `scipy.spatial.distance`. from scipy.spatial.distance import _METRICS_NAMES as SUPPORTED_DISTANCE_METRICS diff --git a/kats/detectors/interval_detector.py b/kats/detectors/interval_detector.py index e86a6bc40..58c2cde4b 100644 --- a/kats/detectors/interval_detector.py +++ b/kats/detectors/interval_detector.py @@ -53,6 +53,8 @@ from kats.detectors.detector import DetectorModel from kats.detectors.detector_consts import AnomalyResponse, ConfidenceBand from matplotlib import pyplot as plt + +# pyre-fixme[21]: Could not find module `numpy.linalg`. from numpy.linalg import matrix_power from scipy.linalg import toeplitz from scipy.stats import beta, binom, mvn, norm diff --git a/kats/models/bayesian_var.py b/kats/models/bayesian_var.py index 373f95d97..f587b8ce7 100644 --- a/kats/models/bayesian_var.py +++ b/kats/models/bayesian_var.py @@ -26,6 +26,8 @@ import numpy as np import pandas as pd from kats.consts import _log_error, Params, TimeSeriesData + +# pyre-fixme[21]: Could not find module `numpy.linalg`. from numpy.linalg import inv from scipy.linalg import block_diag diff --git a/kats/models/ml_ar.py b/kats/models/ml_ar.py index 9323f1969..5560ab0aa 100644 --- a/kats/models/ml_ar.py +++ b/kats/models/ml_ar.py @@ -18,6 +18,8 @@ from kats.utils.parameter_tuning_utils import ( get_default_lightgbm_parameter_search_space, ) + +# pyre-fixme[21]: Could not find module `numpy.random`. from numpy.random import RandomState try: diff --git a/kats/tests/detectors/test_bocpd.py b/kats/tests/detectors/test_bocpd.py index ab82bc2bc..d1a94f0da 100644 --- a/kats/tests/detectors/test_bocpd.py +++ b/kats/tests/detectors/test_bocpd.py @@ -22,6 +22,8 @@ TrendChangeParameters, ) from kats.utils.simulator import Simulator + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/detectors/test_cusum_detection.py b/kats/tests/detectors/test_cusum_detection.py index cf6432e7d..256ef7f4a 100644 --- a/kats/tests/detectors/test_cusum_detection.py +++ b/kats/tests/detectors/test_cusum_detection.py @@ -18,6 +18,8 @@ MultiCUSUMDetector, VectorizedCUSUMDetector, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized from scipy.stats import chi2 # @manual from sklearn.datasets import make_spd_matrix diff --git a/kats/tests/detectors/test_cusum_model.py b/kats/tests/detectors/test_cusum_model.py index 34db2065a..7fd56e30d 100644 --- a/kats/tests/detectors/test_cusum_model.py +++ b/kats/tests/detectors/test_cusum_model.py @@ -23,6 +23,8 @@ CusumScoreFunction, VectorizedCUSUMDetectorModel, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/detectors/test_detector_consts.py b/kats/tests/detectors/test_detector_consts.py index c9d1ec850..b399b2403 100644 --- a/kats/tests/detectors/test_detector_consts.py +++ b/kats/tests/detectors/test_detector_consts.py @@ -20,6 +20,8 @@ PercentageChange, SingleSpike, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/detectors/test_distribution_distance_model.py b/kats/tests/detectors/test_distribution_distance_model.py index 0f7d95ca4..898b5db6c 100644 --- a/kats/tests/detectors/test_distribution_distance_model.py +++ b/kats/tests/detectors/test_distribution_distance_model.py @@ -20,6 +20,8 @@ TimeSeriesData, ) from kats.detectors.distribution_distance_model import DistributionDistanceModel + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/detectors/test_interval_detector.py b/kats/tests/detectors/test_interval_detector.py index 4d6e86e62..828a02852 100644 --- a/kats/tests/detectors/test_interval_detector.py +++ b/kats/tests/detectors/test_interval_detector.py @@ -26,6 +26,8 @@ TwoSampleRealValuedIntervalDetectorModel, TwoSampleSchema, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized from scipy.stats import norm diff --git a/kats/tests/detectors/test_prophet_detector.py b/kats/tests/detectors/test_prophet_detector.py index d28b8da98..4ae2ef2a6 100644 --- a/kats/tests/detectors/test_prophet_detector.py +++ b/kats/tests/detectors/test_prophet_detector.py @@ -23,6 +23,8 @@ to_seasonality, ) from kats.utils.simulator import Simulator + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized START_DATE_TEST_DATA = "2018-01-01" diff --git a/kats/tests/detectors/test_robust_stat_detection.py b/kats/tests/detectors/test_robust_stat_detection.py index 285b82c70..85c915a43 100644 --- a/kats/tests/detectors/test_robust_stat_detection.py +++ b/kats/tests/detectors/test_robust_stat_detection.py @@ -17,6 +17,8 @@ RobustStatChangePoint, RobustStatDetector, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized from sklearn.datasets import make_spd_matrix diff --git a/kats/tests/detectors/test_rolling_stats_model.py b/kats/tests/detectors/test_rolling_stats_model.py index 1b246f29d..9e350e65c 100644 --- a/kats/tests/detectors/test_rolling_stats_model.py +++ b/kats/tests/detectors/test_rolling_stats_model.py @@ -19,6 +19,8 @@ TimeSeriesData, ) from kats.detectors.rolling_stats_model import RollingStatsModel + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/detectors/test_stat_sig_detector.py b/kats/tests/detectors/test_stat_sig_detector.py index 8ff1bc617..56a785be2 100644 --- a/kats/tests/detectors/test_stat_sig_detector.py +++ b/kats/tests/detectors/test_stat_sig_detector.py @@ -27,6 +27,8 @@ ) from kats.utils.decomposition import SeasonalityHandler from kats.utils.simulator import Simulator + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/detectors/test_trend_mk.py b/kats/tests/detectors/test_trend_mk.py index 65486610e..0d3f57122 100644 --- a/kats/tests/detectors/test_trend_mk.py +++ b/kats/tests/detectors/test_trend_mk.py @@ -11,6 +11,8 @@ import pandas as pd from kats.detectors.trend_mk import MKDetector from kats.tests.detectors.utils import gen_no_trend_data_ndim, gen_trend_data_ndim + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/metrics/test_metadata.py b/kats/tests/metrics/test_metadata.py index 16a1b64ac..0026f6c5f 100644 --- a/kats/tests/metrics/test_metadata.py +++ b/kats/tests/metrics/test_metadata.py @@ -10,6 +10,8 @@ from kats.metrics import metadata from kats.metrics.metadata import inspect, MetricMetadata + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/metrics/test_metrics.py b/kats/tests/metrics/test_metrics.py index 4696e0dbc..8203dda06 100644 --- a/kats/tests/metrics/test_metrics.py +++ b/kats/tests/metrics/test_metrics.py @@ -9,8 +9,12 @@ from unittest import TestCase import numpy as np + +# pyre-fixme[21]: Could not find module `numpy.testing`. import numpy.testing as npt from kats.metrics import metrics + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/models/test_arima_model.py b/kats/tests/models/test_arima_model.py index 03c15519d..fd6df10f4 100644 --- a/kats/tests/models/test_arima_model.py +++ b/kats/tests/models/test_arima_model.py @@ -26,6 +26,8 @@ PEYTON_FCST_30_ARIMA_PARAM_2_MODEL_1, PEYTON_FCST_30_ARIMA_PARAM_2_MODEL_2, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized STEPS_1 = 15 diff --git a/kats/tests/models/test_ensemble.py b/kats/tests/models/test_ensemble.py index f4c75599c..6df42d23c 100644 --- a/kats/tests/models/test_ensemble.py +++ b/kats/tests/models/test_ensemble.py @@ -27,6 +27,8 @@ from kats.models.ensemble.kats_ensemble import KatsEnsemble from kats.models.ensemble.median_ensemble import MedianEnsembleModel from kats.models.ensemble.weighted_avg_ensemble import WeightedAvgEnsemble + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized np.random.seed(123321) diff --git a/kats/tests/models/test_globalmodel.py b/kats/tests/models/test_globalmodel.py index ff35d4903..76c40dc40 100644 --- a/kats/tests/models/test_globalmodel.py +++ b/kats/tests/models/test_globalmodel.py @@ -38,6 +38,8 @@ S2Cell, split, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/models/test_holt_winters_model.py b/kats/tests/models/test_holt_winters_model.py index 2c29b464d..3b30d7dab 100644 --- a/kats/tests/models/test_holt_winters_model.py +++ b/kats/tests/models/test_holt_winters_model.py @@ -19,6 +19,8 @@ AIR_FCST_HW_1, # first param combination results AIR_FCST_HW_2, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized pd_ver = float(re.findall("([0-9]+\\.[0-9]+)\\..*", pd.__version__)[0]) diff --git a/kats/tests/models/test_linear_model.py b/kats/tests/models/test_linear_model.py index df86c6195..89c27f250 100644 --- a/kats/tests/models/test_linear_model.py +++ b/kats/tests/models/test_linear_model.py @@ -25,6 +25,8 @@ PEYTON_FCST_LINEAR_NAN, PEYTON_INPUT_NAN, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized TEST_DATA: Dict[ diff --git a/kats/tests/models/test_ml_ar_model.py b/kats/tests/models/test_ml_ar_model.py index da9e9d4e6..58709e44e 100644 --- a/kats/tests/models/test_ml_ar_model.py +++ b/kats/tests/models/test_ml_ar_model.py @@ -12,6 +12,8 @@ import pandas as pd from kats.consts import TimeSeriesData from kats.models.ml_ar import MLARModel, MLARParams + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized single_univariate_ts = [ diff --git a/kats/tests/models/test_models_dummy_data.py b/kats/tests/models/test_models_dummy_data.py index 096d13194..c31faa54d 100644 --- a/kats/tests/models/test_models_dummy_data.py +++ b/kats/tests/models/test_models_dummy_data.py @@ -11,6 +11,7 @@ import numpy as np import pandas as pd +# pyre-fixme[21]: Could not find name `Timestamp` in `pandas`. from pandas import Timestamp AIR_FCST_LINEAR_95 = pd.DataFrame( diff --git a/kats/tests/models/test_neuralprophet_model.py b/kats/tests/models/test_neuralprophet_model.py index 819e02991..920b356a0 100644 --- a/kats/tests/models/test_neuralprophet_model.py +++ b/kats/tests/models/test_neuralprophet_model.py @@ -22,6 +22,8 @@ NONSEASONAL_FUTURE_DF, NONSEASONAL_INPUT, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/models/test_prophet_model.py b/kats/tests/models/test_prophet_model.py index b6af2e9df..c49b23600 100644 --- a/kats/tests/models/test_prophet_model.py +++ b/kats/tests/models/test_prophet_model.py @@ -42,6 +42,8 @@ PEYTON_FCST_30_PROPHET_DAILY_CAP_SM_11, PEYTON_FCST_30_PROPHET_DAILY_CAP_SM_12, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/models/test_sarima_model.py b/kats/tests/models/test_sarima_model.py index 95f027c14..008542ff5 100644 --- a/kats/tests/models/test_sarima_model.py +++ b/kats/tests/models/test_sarima_model.py @@ -28,6 +28,8 @@ AIR_FCST_30_SARIMA_PARAM_2_MODEL_2, EXOG_FCST_15_SARIMA_PARAM_EXOG_MODEL_1, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized AIR_TS: pd.DataFrame = load_air_passengers() diff --git a/kats/tests/models/test_simple_heuristic_model.py b/kats/tests/models/test_simple_heuristic_model.py index 899d78e79..ec8ef44c1 100644 --- a/kats/tests/models/test_simple_heuristic_model.py +++ b/kats/tests/models/test_simple_heuristic_model.py @@ -15,6 +15,8 @@ SimpleHeuristicModel, SimpleHeuristicModelParams, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized test_univariate_df = pd.DataFrame( diff --git a/kats/tests/models/test_stlf_model.py b/kats/tests/models/test_stlf_model.py index 8312c45cf..192d17b8e 100644 --- a/kats/tests/models/test_stlf_model.py +++ b/kats/tests/models/test_stlf_model.py @@ -21,6 +21,8 @@ ) from kats.models.stlf import STLFModel, STLFParams from kats.utils.simulator import Simulator + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/models/test_theta_model.py b/kats/tests/models/test_theta_model.py index 62c9a2a11..dd3e1d341 100644 --- a/kats/tests/models/test_theta_model.py +++ b/kats/tests/models/test_theta_model.py @@ -28,6 +28,8 @@ PEYTON_FCST_30_THETA_SM_11, PEYTON_FCST_30_THETA_SM_12, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/models/test_var_model.py b/kats/tests/models/test_var_model.py index 468ae58f6..8130df482 100644 --- a/kats/tests/models/test_var_model.py +++ b/kats/tests/models/test_var_model.py @@ -14,6 +14,8 @@ from kats.consts import TimeSeriesData from kats.data.utils import load_data from kats.models.var import VARModel, VARParams + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/test_ensemble.py b/kats/tests/test_ensemble.py index 7da27d53b..41c06f898 100644 --- a/kats/tests/test_ensemble.py +++ b/kats/tests/test_ensemble.py @@ -29,6 +29,8 @@ from kats.models.ensemble.median_ensemble import MedianEnsembleModel from kats.models.ensemble.weighted_avg_ensemble import WeightedAvgEnsemble from kats.models.model import Model + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized np.random.seed(123321) diff --git a/kats/tests/tsfeatures/test_tsfeatures.py b/kats/tests/tsfeatures/test_tsfeatures.py index d75d2ebff..d92309d92 100644 --- a/kats/tests/tsfeatures/test_tsfeatures.py +++ b/kats/tests/tsfeatures/test_tsfeatures.py @@ -25,6 +25,8 @@ TsFeatures, TsFourierFeatures, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized SAMPLE_INPUT_TS_BOCPD_SCALED = pd.DataFrame( diff --git a/kats/tests/utils/test_datapartition.py b/kats/tests/utils/test_datapartition.py index 7bb913620..f9baa1f73 100644 --- a/kats/tests/utils/test_datapartition.py +++ b/kats/tests/utils/test_datapartition.py @@ -17,6 +17,8 @@ SimpleDataPartition, SimpleTimestampDataPartition, ) + +# pyre-fixme[21]: Could not find module `parameterized.parameterized`. from parameterized.parameterized import parameterized diff --git a/kats/tests/utils/test_decomposition.py b/kats/tests/utils/test_decomposition.py index 4976d5d17..dbf3a3129 100644 --- a/kats/tests/utils/test_decomposition.py +++ b/kats/tests/utils/test_decomposition.py @@ -17,6 +17,8 @@ from kats.utils.decomposition import SeasonalityHandler, TimeSeriesDecomposition from kats.utils.simulator import Simulator from scipy.stats import ks_2samp + +# pyre-fixme[21]: Could not find name `STL` in `statsmodels.tsa.seasonal`. from statsmodels.tsa.seasonal import seasonal_decompose, STL diff --git a/kats/tests/utils/test_time_series_parameter_tuning.py b/kats/tests/utils/test_time_series_parameter_tuning.py index 5b55d66b2..b6a60e38e 100644 --- a/kats/tests/utils/test_time_series_parameter_tuning.py +++ b/kats/tests/utils/test_time_series_parameter_tuning.py @@ -20,6 +20,7 @@ from kats.models.prophet import ProphetModel from kats.utils.time_series_parameter_tuning import compute_search_cardinality +# pyre-fixme[21]: Could not find module `numpy.random`. from numpy.random import RandomState diff --git a/kats/tsfeatures/tsfeatures.py b/kats/tsfeatures/tsfeatures.py index 66be0af84..acf8bad41 100644 --- a/kats/tsfeatures/tsfeatures.py +++ b/kats/tsfeatures/tsfeatures.py @@ -32,6 +32,8 @@ from scipy.linalg import toeplitz from scipy.signal import periodogram # @manual from statsmodels.stats.diagnostic import het_arch + +# pyre-fixme[21]: Could not find name `STL` in `statsmodels.tsa.seasonal`. from statsmodels.tsa.seasonal import STL from statsmodels.tsa.stattools import acf, kpss, pacf diff --git a/kats/utils/decomposition.py b/kats/utils/decomposition.py index 9b3dcf2d7..273e4d247 100644 --- a/kats/utils/decomposition.py +++ b/kats/utils/decomposition.py @@ -19,6 +19,8 @@ ParameterError, TimeSeriesData, ) + +# pyre-fixme[21]: Could not find name `STL` in `statsmodels.tsa.seasonal`. from statsmodels.tsa.seasonal import seasonal_decompose, STL # from numpy.typing import ArrayLike