Skip to content

Commit 58b5bd0

Browse files
committed
fix tests
1 parent f1a8eb2 commit 58b5bd0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

runtime/tests/automl_runtime/forecast/prophet/forecast_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def test_training_with_split_cutoff(self):
151151
trial_timeout=1000,
152152
random_state=0,
153153
is_parallel=False,
154-
regressors=["f1", "f2"],
155154
split_cutoff=pd.Timestamp('2020-07-10 00:00:00'))
156155

157156
for df in [self.df, self.df_datetime_date, self.df_string_time]:

runtime/tests/automl_runtime/forecast/utils_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_generate_custom_cutoffs_success_daily(self):
195195
pd.date_range(start="2020-07-01", end="2020-08-30", freq='d'), columns=["ds"]
196196
).rename_axis("y").reset_index()
197197
cutoffs = generate_custom_cutoffs(df, horizon=7, unit="D", split_cutoff=pd.Timestamp('2020-08-21 00:00:00'))
198-
self.assertEqual([pd.Timestamp('2020-08-21 12:00:00'), pd.Timestamp('2020-08-22 00:00:00'), pd.Timestamp('2020-08-23 00:00:00')], cutoffs)
198+
self.assertEqual([pd.Timestamp('2020-08-21 00:00:00'), pd.Timestamp('2020-08-22 00:00:00'), pd.Timestamp('2020-08-23 00:00:00')], cutoffs)
199199

200200
def test_generate_custom_cutoffs_success_weekly(self):
201201
df = pd.DataFrame(
@@ -215,8 +215,8 @@ def test_generate_custom_cutoffs_success_quaterly(self):
215215
df = pd.DataFrame(
216216
pd.date_range(start="2020-07-12", periods=9, freq=pd.DateOffset(months=3)), columns=["ds"]
217217
).rename_axis("y").reset_index()
218-
cutoffs = generate_custom_cutoffs(df, horizon=7, unit="QS", split_cutoff=pd.Timestamp('2021-07-12 00:00:00'))
219-
self.assertEqual([pd.Timestamp('2021-07-12 00:00:00'), pd.Timestamp('2022-10-12 00:00:00')], cutoffs)
218+
cutoffs = generate_custom_cutoffs(df, horizon=7, unit="QS", split_cutoff=pd.Timestamp('2020-07-12 00:00:00'))
219+
self.assertEqual([pd.Timestamp('2020-07-12 00:00:00'), pd.Timestamp('2020-10-12 00:00:00')], cutoffs)
220220

221221
def test_generate_custom_cutoffs_success_annualy(self):
222222
df = pd.DataFrame(

0 commit comments

Comments
 (0)