You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autots/evaluator/auto_ts.py
+38-16Lines changed: 38 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ class AutoTS(object):
134
134
if True, recommend use in conjunction with `verbose` > 0 and `result_file` in the event of accidental complete termination.
135
135
if "end_generation", as True and also ends entire generation of run. Note skipped models will not be tried again.
136
136
generation_timeout (int): if not None, this is the number of minutes from start at which the generational search ends, then proceeding to validation
137
-
This is only checked after the end of each generation, so only offers an 'approximate' timeout for searching
137
+
This is only checked after the end of each generation, so only offers an 'approximate' timeout for searching. It is an overall cap for total generation search time, not per generation.
138
138
current_model_file (str): file path to write to disk of current model params (for debugging if computer crashes). .json is appended
139
139
force_gc (bool): if True, run gc.collect() after each model run. Probably won't make much difference.
140
140
verbose (int): setting to 0 or lower should reduce most output. Higher numbers give more output.
@@ -1198,7 +1198,7 @@ def fit(
1198
1198
1199
1199
# unpack ensemble models so sub models appear at highest level
1200
1200
self.initial_template=unpack_ensemble_models(
1201
-
self.initial_template,
1201
+
self.initial_template.copy(),
1202
1202
self.template_cols,
1203
1203
keep_ensemble=True,
1204
1204
recursive=True,
@@ -3225,6 +3225,7 @@ def plot_validations(
3225
3225
ifdf_wideisNone:
3226
3226
df_wide=self.df_wide_numeric
3227
3227
# choose which series to plot
3228
+
agg_flag=False
3228
3229
ifseriesisNone:
3229
3230
ifsubsetisNone:
3230
3231
series=random.choice(df_wide.columns)
@@ -3241,6 +3242,9 @@ def plot_validations(
3241
3242
series=mapes[0]
3242
3243
elifstr(subset).lower() =="worst score":
3243
3244
series=scores[0]
3245
+
elifstr(subset).lower() =="agg":
3246
+
agg_flag=True
3247
+
series="Aggregate Forecasts"
3244
3248
else:
3245
3249
raiseValueError(
3246
3250
"plot_validations arg subset must be None, 'best' or 'worst'"
0 commit comments