Skip to content

Commit

Permalink
remove model loading (Azure#1975)
Browse files Browse the repository at this point in the history
Co-authored-by: Miseon Park <[email protected]>
  • Loading branch information
msp8955 and Miseon Park authored Jan 6, 2023
1 parent eb876ce commit 9c88c15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
"outputs": [],
"source": [
"automl_run = experiment.submit(automl_config, show_output=False)\n",
"_ = automl_run.wait_for_completion(show_output=False)"
"automl_run.wait_for_completion(show_output=False)"
]
},
{
Expand Down Expand Up @@ -428,7 +428,7 @@
"metadata": {},
"outputs": [],
"source": [
"best_run, best_model = automl_run.get_output()\n",
"best_run = automl_run.get_best_child()\n",
"best_run"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"import pandas as pd\n",
"from sklearn.metrics import classification_report\n",
"\n",
"from azureml.automl.dnn.nlp.common.io.utils import load_model_wrapper\n",
"from azureml.automl.runtime.shared.score.scoring import score_classification\n",
"import azureml.core\n",
"from azureml.core import Dataset\n",
Expand Down Expand Up @@ -292,7 +291,7 @@
"automl_run = experiment.submit(\n",
" automl_config, show_output=False\n",
") # You might see a warning about \"enable_distributed_dnn_training\". Please simply ignore.\n",
"_ = automl_run.wait_for_completion(show_output=False)"
"automl_run.wait_for_completion(show_output=False)"
]
},
{
Expand Down Expand Up @@ -329,12 +328,7 @@
"metadata": {},
"outputs": [],
"source": [
"(\n",
" best_run,\n",
" best_model,\n",
") = (\n",
" automl_run.get_output()\n",
") # You might see a warning about \"enable_distributed_dnn_training\". Please simply ignore.\n",
"best_run = automl_run.get_best_child()\n",
"best_run"
]
},
Expand Down Expand Up @@ -482,6 +476,7 @@
"metadata": {},
"outputs": [],
"source": [
"from azureml.automl.dnn.nlp.common.io.utils import load_model_wrapper\n",
"y_transformer = load_model_wrapper(training_run).y_transformer"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
"outputs": [],
"source": [
"automl_run = experiment.submit(automl_config, show_output=False)\n",
"_ = automl_run.wait_for_completion(show_output=False)"
"automl_run.wait_for_completion(show_output=False)"
]
},
{
Expand Down Expand Up @@ -309,7 +309,7 @@
"metadata": {},
"outputs": [],
"source": [
"best_run, best_model = automl_run.get_output()\n",
"best_run = automl_run.get_best_child()\n",
"best_run"
]
},
Expand Down

0 comments on commit 9c88c15

Please sign in to comment.