Skip to content

Commit

Permalink
Merge branch 'main' into first_contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
skzhang1 authored Jan 29, 2023
2 parents 2f93736 + d46532e commit 7644265
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
6 changes: 5 additions & 1 deletion flaml/tune/tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def best_config(self) -> Dict:
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 = {}
Expand Down
11 changes: 10 additions & 1 deletion notebook/automl_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7528,9 +7528,9 @@ typedarray-to-buffer@^3.1.5:
is-typedarray "^1.0.0"

ua-parser-js@^0.7.30:
version "0.7.32"
resolved "https://registry.npmmirror.com/ua-parser-js/-/ua-parser-js-0.7.32.tgz#cd8c639cdca949e30fa68c44b7813ef13e36d211"
integrity sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw==
version "0.7.33"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.33.tgz#1d04acb4ccef9293df6f70f2c3d22f3030d8b532"
integrity sha512-s8ax/CeZdK9R/56Sui0WM6y9OFREJarMRHqLB2EwkovemBxNQ+Bqu8GAsUnVcXKgphb++ghr/B2BZx4mahujPw==

unbox-primitive@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit 7644265

Please sign in to comment.