mirror of
https://github.com/microsoft/autogen.git
synced 2025-11-16 01:55:18 +00:00
display data head in notebook; exclude None (#885)
This commit is contained in:
parent
dbd48c555f
commit
d46532efda
@ -64,7 +64,11 @@ class ExperimentAnalysis(EA):
|
|||||||
return self.get_best_config(self.default_metric, self.default_mode)
|
return self.get_best_config(self.default_metric, self.default_mode)
|
||||||
|
|
||||||
def lexico_best(self, trials):
|
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"]
|
metrics = self.lexico_objectives["metrics"]
|
||||||
modes = self.lexico_objectives["modes"]
|
modes = self.lexico_objectives["modes"]
|
||||||
f_best = {}
|
f_best = {}
|
||||||
|
|||||||
@ -71,6 +71,15 @@
|
|||||||
"X_train, X_test, y_train, y_test = load_openml_dataset(dataset_id=1169, data_dir='./')"
|
"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",
|
"cell_type": "markdown",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
@ -1283,7 +1292,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"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": {
|
"vscode": {
|
||||||
"interpreter": {
|
"interpreter": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user