Skip to content

Commit

Permalink
optuna for non auto models
Browse files Browse the repository at this point in the history
  • Loading branch information
americast committed Nov 11, 2023
1 parent 2eb51b2 commit e03c4d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions evadb/executor/create_function_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,8 @@ def get_optuna_config(trial):
return model_args_config

model_args["config"] = get_optuna_config
model_args["backend"] = "optuna"

model_args["backend"] = "optuna"

model_args["h"] = horizon
model_args["loss"] = MQLoss(level=[conf])
Expand Down Expand Up @@ -542,7 +543,7 @@ def get_optuna_config(trial):
raise FunctionIODefinitionError(err_msg)

model = StatsForecast(
[model_here(season_length=season_length)], freq=new_freq
[model_here(season_length=season_length)], freq=new_freq, n_jobs=-1
)

data["ds"] = pd.to_datetime(data["ds"])
Expand Down
2 changes: 2 additions & 0 deletions test/integration_tests/long/test_model_forecasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def test_forecast(self):
TYPE Forecasting
HORIZON 12
PREDICT 'y'
LIBRARY 'neuralforecast'
AUTO 'false'
FREQUENCY 'M';
"""
execute_query_fetch_all(self.evadb, create_predict_udf)
Expand Down

0 comments on commit e03c4d0

Please # to comment.