Skip to content

Commit

Permalink
- added notebook for testing pipeline.
Browse files Browse the repository at this point in the history
- added pipeline python files.
  • Loading branch information
Seb-Good committed May 19, 2019
1 parent 73a0f56 commit 2c062a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 14 additions & 9 deletions notebooks/test_service.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"['val_0.jpg', 'val_1.jpg', 'val_10.jpg', 'val_100.jpg', 'val_1000.jpg']\n"
"['val_2670.jpg', 'val_4752.jpg', 'val_7445.jpg', 'val_7043.jpg', 'val_3452.jpg']\n"
]
}
],
Expand All @@ -74,26 +74,31 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"# Get workspace\n",
"workspace = Workspace.get(name='mnist-azure', subscription_id='', \n",
" resource_group='')\n",
"workspace = Workspace.get(name='mnist-azure', subscription_id='30284b70-31e1-4b93-b620-26959f80a8f9', \n",
" resource_group='spector-ai')\n",
"\n",
"# Get web service\n",
"service = workspace.webservices['mnist-tf']\n",
"service = workspace.webservices['mnist']\n",
"scoring_uri = service.scoring_uri"
]
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8a870baf7fb249d9922c7a8f6737adde",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(IntSlider(value=0, description='Image ID', max=9999), Output()), _dom_classes=('widget-i…"
]
Expand Down Expand Up @@ -168,13 +173,13 @@
"pycharm": {
"stem_cell": {
"cell_type": "raw",
"source": [],
"metadata": {
"collapsed": false
}
},
"source": []
}
}
},
"nbformat": 4,
"nbformat_minor": 1
}
}
2 changes: 1 addition & 1 deletion scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def init():
global images, predictions, sess

# Get model path
model_path = Model.get_model_path(model_name='mnist_tf_model', version=5)
model_path = Model.get_model_path(model_name='mnist_tf_model', version=6)

# Start session
tf.reset_default_graph()
Expand Down

0 comments on commit 2c062a1

Please sign in to comment.