A programming framework for agentic AI
display data head in notebook; exclude None (#885)
Chi Wangd46532efda14
diff --git a/flaml/tune/tune.py b/flaml/tune/tune.pyindex 29c05f771..8fbe2042e 100644--- a/flaml/tune/tune.py+++ b/flaml/tune/tune.py@@ -64,7 +64,11 @@ class ExperimentAnalysis(EA):return self.get_best_config(self.default_metric, self.default_mode)def lexico_best(self, trials):- results = {index: trial.last_result for index, trial in enumerate(trials)}+ results = {+ index: trial.last_result+ for index, trial in enumerate(trials)+ if trial.last_result+ }metrics = self.lexico_objectives["metrics"]modes = self.lexico_objectives["modes"]f_best = {}diff --git a/notebook/automl_classification.ipynb b/notebook/automl_classification.ipynbindex 3d0561d3f..c16338203 100644--- a/notebook/automl_classification.ipynb+++ b/notebook/automl_classification.ipynb@@ -71,6 +71,15 @@"X_train, X_test, y_train, y_test = load_openml_dataset(dataset_id=1169, data_dir='./')"]},+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "X_train.head()"+ ]+ },{"cell_type": "markdown","metadata": {@@ -1283,7 +1292,7 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.9.15 (main, Oct 26 2022, 03:47:43) \n[GCC 10.2.1 20210110]"+ "version": "3.9.16 (main, Dec 8 2022, 02:40:11) \n[GCC 10.2.1 20210110]"},"vscode": {"interpreter": {