Skip to content

Commit

Permalink
Disable prophet model
Browse files Browse the repository at this point in the history
  • Loading branch information
sjtrny committed Oct 5, 2023
1 parent c558431 commit d5492fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dash/pages/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,14 @@ def filter_results(**kwargs):

for item_title in unique_series_titles[0:show_num]:
try:
forecast_series_dicts[item_title] = get_forecast_data(
series_data = get_forecast_data(
item_title
)
if series_data == None:
raise FileNotFoundError

forecast_series_dicts[item_title] = series_data

series_data = forecast_series_dicts[item_title]
url_title = urlencode({"title": item_title})

title = (
Expand Down
4 changes: 4 additions & 0 deletions dash/pages/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def _forecast_performance_layout():
def _get_series_title(title):
try:
series_data_dict = get_forecast_data(title)
if series_data_dict == None:
raise Exception
except:
return "Series"

Expand Down Expand Up @@ -361,6 +363,8 @@ def wrapper(*args):
if "title" in parse_result:
title = parse_result["title"][0]
series_data_dict = get_forecast_data(title)
if series_data_dict == None:
raise PreventUpdate

del kwargs_dict[location_id]
return func(series_data_dict, **kwargs_dict)
Expand Down
2 changes: 1 addition & 1 deletion updater/run_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"RComb",
"LinearRegressionForecast",
"RNN_M4_benchmark",
"FBProphet",
# "FBProphet",
"RCES",
]

Expand Down

0 comments on commit d5492fa

Please sign in to comment.