From 3f531fd211250b9ac0ff329f41fd51cd2d753e55 Mon Sep 17 00:00:00 2001 From: Sheri Gilley Date: Wed, 17 Oct 2018 11:09:46 -0500 Subject: [PATCH] try camelCase --- docs/how-to-deploy-to-aci/how-to-deploy-to-aci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/how-to-deploy-to-aci/how-to-deploy-to-aci.py b/docs/how-to-deploy-to-aci/how-to-deploy-to-aci.py index b6bce783..5744ae73 100644 --- a/docs/how-to-deploy-to-aci/how-to-deploy-to-aci.py +++ b/docs/how-to-deploy-to-aci/how-to-deploy-to-aci.py @@ -7,10 +7,10 @@ print('SDK version' + azureml.core.VERSION) # PREREQ: load workspace info # import azureml.core -# +# from azureml.core import Workspace ws = Workspace.from_config() -# +# scorepy_content = "import json\nimport numpy as np\nimport os\nimport pickle\nfrom sklearn.externals import joblib\nfrom sklearn.linear_model import LogisticRegression\n\nfrom azureml.core.model import Model\n\ndef init():\n global model\n # retreive the path to the model file using the model name\n model_path = Model.get_model_path('sklearn_mnist')\n model = joblib.load(model_path)\n\ndef run(raw_data):\n data = np.array(json.loads(raw_data)['data'])\n # make prediction\n y_hat = model.predict(data)\n return json.dumps(y_hat.tolist())" print(scorepy_content)