update samples - test

This commit is contained in:
vizhur
2019-11-01 14:48:01 +00:00
parent 46ec74f8df
commit 4ed3f0767a
308 changed files with 13971 additions and 59495 deletions

View File

@@ -289,12 +289,12 @@
"from sklearn.externals import joblib\n",
"from sklearn.linear_model import LogisticRegression\n",
"\n",
"from azureml.core.model import Model\n",
"\n",
"def init():\n",
" global model\n",
" # retrieve the path to the model file using the model name\n",
" model_path = Model.get_model_path('sklearn_mnist')\n",
" # AZUREML_MODEL_DIR is an environment variable created during deployment.\n",
" # It is the path to the model folder (./azureml-models/$MODEL_NAME/$VERSION)\n",
" # For multiple models, it points to the folder containing all deployed models (./azureml-models)\n",
" model_path = os.path.join(os.getenv('AZUREML_MODEL_DIR'), 'sklearn_mnist_model.pkl')\n",
" model = joblib.load(model_path)\n",
"\n",
"def run(raw_data):\n",
@@ -598,7 +598,7 @@
"metadata": {
"authors": [
{
"name": "roastala"
"name": "shipatel"
}
],
"kernelspec": {