New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notebook test; spark warning message; reproducibility bug; sequential tuning stop condition #869
Conversation
@thinkall have you run into this error in your notebook test? https://github.com/microsoft/FLAML/actions/runs/3809341315/jobs/6480639426#step:12:178 |
Ah, let me check. |
Need to install Please add one line in "nbformat",
"ipykernel", |
Thanks. Shall I also remove the catch for all exceptions in spark/test_notebook.py? |
@thinkall the spark notebook fails after I removed the except clause for all exceptions. https://github.com/microsoft/FLAML/actions/runs/3819302422/jobs/6496741544#step:12:178 |
> raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
E nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
E ------------------
E ''' retrieve best config'''
E print('Best hyperparmeter config:', automl.best_config)
E print('Best r2 on validation data: {0:.4g}'.format(1-automl.best_loss))
E print('Training duration of best run: {0:.4g} s'.format(automl.best_config_train_time))
E ------------------
E
E ---------------------------------------------------------------------------
E KeyError Traceback (most recent call last)
E Cell In[6], line 4
E 2 print('Best hyperparmeter config:', automl.best_config)
E 3 print('Best r2 on validation data: {0:.4g}'.format(1-automl.best_loss))
E ----> 4 print('Training duration of best run: {0:.4g} s'.format(automl.best_config_train_time))
E
E File ~/work/FLAML/FLAML/flaml/automl/automl.py:896, in AutoML.best_config_train_time(self)
E 892 @property
E 893 def best_config_train_time(self):
E 894 """A float of the seconds taken by training the best config."""
E 895 return getattr(
E --> 896 self._search_states[self._best_estimator], "best_config_train_time", None
E 897 )
E
E KeyError: None
E KeyError: None It seems that no model returned from the trial. I re-ran the job, it passed. And the same test in other envs all passed. So maybe we can ignore this error or pass a starting point to make sure it can return a model? |
Related work items: microsoft#493, microsoft#777, microsoft#820, microsoft#837, microsoft#843, microsoft#848, microsoft#849, microsoft#850, microsoft#853, microsoft#855, microsoft#857, microsoft#869, microsoft#870, microsoft#888, microsoft#894, microsoft#923, microsoft#924, microsoft#925, microsoft#934, microsoft#952, microsoft#962, microsoft#973, microsoft#975, microsoft#995
Why are these changes needed?
Related issue number
#851
Checks