Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MLflow notebook #1267

Merged
merged 1 commit into from
Dec 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"toc-hr-collapsed": true,
"toc-nb-collapsed": true
},
"metadata": {},
"source": [
"## Dependencies\n",
"\n",
Expand All @@ -46,7 +43,8 @@
"* kubectl v1.14+\n",
"* Python 3.6+\n",
"* MLFlow 1.1.0\n",
"* pygmentize\n",
"* [pygmentize](https://pygments.org/docs/cmdline/)\n",
"* [tree](http://mama.indstate.edu/users/ice/tree/)\n",
"\n",
"We will also take this chance to load the Python dependencies we will use through the tutorial:"
]
Expand All @@ -64,20 +62,14 @@
},
{
"cell_type": "markdown",
"metadata": {
"toc-hr-collapsed": true,
"toc-nb-collapsed": true
},
"metadata": {},
"source": [
"#### Let's get started! 🚀🔥"
]
},
{
"cell_type": "markdown",
"metadata": {
"toc-hr-collapsed": true,
"toc-nb-collapsed": true
},
"metadata": {},
"source": [
"## 1. Train the first MLFlow Elastic Net Wine example\n",
"\n",
Expand Down Expand Up @@ -581,10 +573,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"toc-hr-collapsed": true,
"toc-nb-collapsed": true
},
"metadata": {},
"source": [
"## 2. Deploy your model using the Pre-packaged Moldel Server for MLFlow\n",
"\n",
Expand Down Expand Up @@ -696,10 +685,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"toc-hr-collapsed": true,
"toc-nb-collapsed": true
},
"metadata": {},
"source": [
"## 3. Test the deployed MLFlow model by sending requests\n",
"Now that our model is deployed in Kubernetes, we are able to send any requests."
Expand Down Expand Up @@ -796,7 +782,7 @@
"source": [
"!curl -X POST -H 'Content-Type: application/json' \\\n",
" -d \"{'data': {'names': [], 'ndarray': [[7.0, 0.27, 0.36, 20.7, 0.045, 45.0, 170.0, 1.001, 3.0, 0.45, 8.8]]}}\" \\\n",
" http://localhost:80/seldon/default/mlflow-deployment/api/v0.1/predictions"
" http://localhost:80/seldon/seldon/mlflow-deployment/api/v0.1/predictions"
]
},
{
Expand Down Expand Up @@ -846,6 +832,7 @@
"\n",
"sc = SeldonClient(\n",
" gateway=\"ambassador\", \n",
" namespace=\"seldon\",\n",
" gateway_endpoint=HOST + \":\" + port)\n",
"\n",
"client_prediction = sc.predict(\n",
Expand All @@ -859,10 +846,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"toc-hr-collapsed": true,
"toc-nb-collapsed": true
},
"metadata": {},
"source": [
"## 4. Deploy your second model as an A/B test\n",
"\n",
Expand Down Expand Up @@ -1019,7 +1003,7 @@
"\n",
"For this we can access the URL with the command below, it will request an admin and password which by default are set to the following:\n",
"* Username: admin\n",
"* Password: admin\n",
"* Password: password\n",
"\n",
"You can access the grafana dashboard through the port provided below:"
]
Expand Down