Skip to content

Commit

Permalink
Revert "feat: add autoarima model"
Browse files Browse the repository at this point in the history
This reverts commit a1d0f08.
  • Loading branch information
AzulGarza committed Nov 7, 2022
1 parent a1d0f08 commit c3e25ef
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 423 deletions.
4 changes: 0 additions & 4 deletions model.openbb

This file was deleted.

148 changes: 0 additions & 148 deletions openbb_terminal/forecast/autoarima_model.py

This file was deleted.

117 changes: 0 additions & 117 deletions openbb_terminal/forecast/autoarima_view.py

This file was deleted.

59 changes: 0 additions & 59 deletions openbb_terminal/forecast/forecast_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
from openbb_terminal.forecast import (
forecast_model,
forecast_view,
autoarima_view,
autoets_view,
expo_model,
expo_view,
Expand Down Expand Up @@ -111,7 +110,6 @@ class ForecastController(BaseController):
"delta",
"atr",
"signal",
"autoarima",
"autoets",
"expo",
"theta",
Expand Down Expand Up @@ -250,7 +248,6 @@ def update_runtime_choices(self):
"signal",
"combine",
"rename",
"autoarima",
"autoets",
"expo",
"theta",
Expand Down Expand Up @@ -330,7 +327,6 @@ def print_help(self):
mt.add_cmd("signal", self.files)
mt.add_raw("\n")
mt.add_info("_tsforecasting_")
mt.add_cmd("autoarima", self.files)
mt.add_cmd("autoets", self.files)
mt.add_cmd("expo", self.files)
mt.add_cmd("theta", self.files)
Expand Down Expand Up @@ -1691,61 +1687,6 @@ def call_export(self, other_args: List[str]):
ns_parser.target_dataset,
)

# AutoARIMA Model
@log_start_end(log=logger)
def call_autoarima(self, other_args: List[str]):
"""Process autoarima command"""
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
add_help=False,
prog="autoarima",
description="""
Perform Automatic ARIMA forecast:
https://nixtla.github.io/statsforecast/examples/getting_started_with_auto_arima_and_ets.html
""",
)
if other_args and "-" not in other_args[0][0]:
other_args.insert(0, "--target-dataset")

ns_parser = self.parse_known_args_and_warn(
parser,
other_args,
export_allowed=EXPORT_ONLY_FIGURES_ALLOWED,
target_dataset=True,
target_column=True,
n_days=True,
seasonal="A",
periods=True,
window=True,
residuals=True,
forecast_only=True,
start=True,
end=True,
naive=True,
export_pred_raw=True,
)
# TODO Convert this to multi series
if ns_parser:
if not helpers.check_parser_input(ns_parser, self.datasets):
return

autoarima_view.display_autoarima_forecast(
data=self.datasets[ns_parser.target_dataset],
dataset_name=ns_parser.target_dataset,
n_predict=ns_parser.n_days,
target_column=ns_parser.target_column,
seasonal_periods=ns_parser.seasonal_periods,
start_window=ns_parser.start_window,
forecast_horizon=ns_parser.n_days,
export=ns_parser.export,
residuals=ns_parser.residuals,
forecast_only=ns_parser.forecast_only,
start_date=ns_parser.s_start_date,
end_date=ns_parser.s_end_date,
naive=ns_parser.naive,
export_pred_raw=ns_parser.export_pred_raw,
)

# AutoETS Model
@log_start_end(log=logger)
def call_autoets(self, other_args: List[str]):
Expand Down
1 change: 0 additions & 1 deletion openbb_terminal/miscellaneous/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ en:
forecast/atr: Add Average True Range
forecast/signal: Add Price Signal (short vs. long term)
forecast/_tsforecasting_: TimeSeries Forecasting
forecast/autoarima: Automatic ARIMA Model
forecast/autoets: Automatic ETS (Error, Trend, Seasonality) Model
forecast/arima: Arima (Non-darts)
forecast/expo: Probabilistic Exponential Smoothing
Expand Down
4 changes: 0 additions & 4 deletions openbb_terminal/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1989,10 +1989,6 @@
"forecast.roc": {"model": "openbb_terminal.forecast.forecast_model.add_roc"},
"forecast.mom": {"model": "openbb_terminal.forecast.forecast_model.add_momentum"},
"forecast.delta": {"model": "openbb_terminal.forecast.forecast_model.add_delta"},
"forecast.autoarima": {
"model": "openbb_terminal.forecast.autoarima_model.get_autoarima_data",
"view": "openbb_terminal.forecast.autoarima_view.display_autoarima_forecast",
},
"forecast.autoets": {
"model": "openbb_terminal.forecast.autoets_model.get_autoets_data",
"view": "openbb_terminal.forecast.autoets_view.display_autoets_forecast",
Expand Down
11 changes: 0 additions & 11 deletions tests/openbb_terminal/forecast/test_autoarima_model.py

This file was deleted.

Loading

0 comments on commit c3e25ef

Please sign in to comment.