mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
pickle the AutoML object (#37)
* pickle the AutoML object * get best model per estimator * test deberta * stateless API * Add Gitter badge (#41) * prevent divide by zero * test roberta * BlendSearchTuner Co-authored-by: Chi Wang (MSR) <chiw@microsoft.com> Co-authored-by: The Gitter Badger <badger@gitter.im>
This commit is contained in:
@@ -385,10 +385,10 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"''' pickle and save the best model '''\n",
|
||||
"''' pickle and save the automl object '''\n",
|
||||
"import pickle\n",
|
||||
"with open('best_model.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl.model, f, pickle.HIGHEST_PROTOCOL)"
|
||||
"with open('automl.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl, f, pickle.HIGHEST_PROTOCOL)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -302,10 +302,10 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"''' pickle and save the best model '''\n",
|
||||
"''' pickle and save the automl object '''\n",
|
||||
"import pickle\n",
|
||||
"with open('best_model.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl.model, f, pickle.HIGHEST_PROTOCOL)"
|
||||
"with open('automl.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl, f, pickle.HIGHEST_PROTOCOL)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -273,10 +273,10 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"''' pickle and save the best model '''\n",
|
||||
"''' pickle and save the automl object '''\n",
|
||||
"import pickle\n",
|
||||
"with open('best_model.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl.model, f, pickle.HIGHEST_PROTOCOL)"
|
||||
"with open('automl.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl, f, pickle.HIGHEST_PROTOCOL)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -321,10 +321,10 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"''' pickle and save the best model '''\n",
|
||||
"''' pickle and save the automl object '''\n",
|
||||
"import pickle\n",
|
||||
"with open('best_model.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl.model, f, pickle.HIGHEST_PROTOCOL)"
|
||||
"with open('automl.pkl', 'wb') as f:\n",
|
||||
" pickle.dump(automl, f, pickle.HIGHEST_PROTOCOL)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user