Skip to content

Commit 3f531fd

Browse files
committed
try camelCase
1 parent 111f5e8 commit 3f531fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/how-to-deploy-to-aci/how-to-deploy-to-aci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
# PREREQ: load workspace info
88
# import azureml.core
99

10-
# <load>
10+
# <loadWorkspace>
1111
from azureml.core import Workspace
1212
ws = Workspace.from_config()
13-
# </load>
13+
# </loadWorkspace>
1414

1515
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())"
1616
print(scorepy_content)

0 commit comments

Comments
 (0)