From 1e225029e5a78e26acd4ba6daa1a34f9bf29279d Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 18 Mar 2025 10:33:07 +0800 Subject: [PATCH] test(gpt): disable model case. --- tools/tdgpt/taosanalytics/algo/fc/arima.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tools/tdgpt/taosanalytics/algo/fc/arima.py b/tools/tdgpt/taosanalytics/algo/fc/arima.py index 9e087a5e9e..fa587c3604 100644 --- a/tools/tdgpt/taosanalytics/algo/fc/arima.py +++ b/tools/tdgpt/taosanalytics/algo/fc/arima.py @@ -68,24 +68,6 @@ class _ArimaService(AbstractForecastService): fc = model.predict(n_periods=fc_rows, return_conf_int=self.return_conf, alpha=self.conf) - # plt.plot(source_data, label='training') - # plt.plot(xrange, actual_data, label='actual') - - # fc_list = fc.tolist() - # fc_without_diff = restore_from_diff(self.list, fc_list, 2) - # print(fc_without_diff) - - # plt.plot(xrange, fc_without_diff, label='fc') - - # residuals = pd.DataFrame(model.arima_res_.resid) - # wn = is_white_noise(residuals) - # print("residual is white noise:", wn) - - # fig, ax = plt.subplots(1, 2) - # residuals.plot(title="Residuals", ax=ax[0]) - # residuals.plot(kind='kde', title='Density', ax=ax[1]) - # plt.show() - res1 = [fc[0].tolist(), fc[1][:, 0].tolist(), fc[1][:, 1].tolist()] if self.return_conf else [fc.tolist()]