Skip to content

Optuna mode gives the following error #397

Closed
@ijeffking

Description

After running:

# training in Optuna mode, highly tune selected algorithm

automl = AutoML(
    mode="Optuna", 
    algorithms=["CatBoost", "LightGBM", "Xgboost"],
    optuna_time_budget=3*3600,
    eval_metric="rmse"
)
automl.fit(X_train, y_train)

I got

2021-05-17 11:18:05,397 supervised.exceptions ERROR No models produced. 
Please check your data or submit a Github issue at https://github.com/mljar/mljar-supervised/issues/new.

1_Optuna_LightGBM not trained. Stop training after the first fold. Time needed to train on the first fold 30.0 seconds. The time estimate for training on all folds is larger than total_time_limit.
There was an error during 2_Optuna_Xgboost training.
Please check AutoML_2/errors.md for details.
There was an error during 3_Optuna_CatBoost training.
Please check AutoML_2/errors.md for details.

---------------------------------------------------------------------------

AutoMLException                           Traceback (most recent call last)

<ipython-input-14-e19533f68cf2> in <module>()
      6     eval_metric="rmse"
      7 )
----> 8 automl.fit(X_train, y_train)

2 frames

/usr/local/lib/python3.7/dist-packages/supervised/base_automl.py in _fit(self, X, y, sample_weight, cv)
   1047                     if len(self._models) == 0:
   1048                         raise AutoMLException(
-> 1049                             "No models produced. \nPlease check your data or"
   1050                             " submit a Github issue at https://github.com/mljar/mljar-supervised/issues/new."
   1051                         )

AutoMLException: No models produced. 
Please check your data or submit a Github issue at https://github.com/mljar/mljar-supervised/issues/new.

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions