display data head in notebook; exclude None (#885)

This commit is contained in:
Chi Wang 2023-01-28 15:42:49 -08:00 committed by GitHub
parent dbd48c555f
commit d46532efda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -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 = {}

View File

@ -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": {