Skip to content

Commit c625365

Browse files
authored
Merge pull request #123 from v3io/IG-13404-netops-infer-nuclio-deploy
Updated inference nuclio cmds
2 parents 352c05b + a0fafb4 commit c625365

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

demos/netops/04-infer.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"pip install sklearn\n",
9090
"pip install v3io_frames\n",
9191
"pip install dask_ml\n",
92+
"pip install dask['complete']\n",
9293
"apt-get update && apt-get install -y wget\n",
9394
"mkdir -p /tmp/mlmodel"
9495
]
@@ -175,7 +176,7 @@
175176
{
176177
"data": {
177178
"text/plain": [
178-
"'time company data_center device \\n2019-06-17 13:42:04 Ortega__Nelson_and_Parrish Chen_Rest 9999032632997 0.0\\n2019-06-17 14:42:04 Ortega__Nelson_and_Parrish Chen_Rest 9999032632997 0.0\\n2019-06-17 13:42:04 Ortega__Nelson_and_Parrish Chen_Rest 2588823083436 0.0\\n2019-06-17 14:42:04 Ortega__Nelson_and_Parrish Chen_Rest 2588823083436 0.0\\n2019-06-17 13:42:04 Ortega__Nelson_and_Parrish Gallagher_Springs 9909218583192 0.0\\n2019-06-17 14:42:04 Ortega__Nelson_and_Parrish Gallagher_Springs 9909218583192 0.0\\n2019-06-17 13:42:04 Washington-Lambert Tamara_Greens 9025508674926 0.0\\n2019-06-17 14:42:04 Washington-Lambert Tamara_Greens 9025508674926 0.0\\n2019-06-17 13:42:04 Washington-Lambert Nicole_Trail 5079628775825 0.0\\n2019-06-17 14:42:04 Washington-Lambert Nicole_Trail 5079628775825 0.0\\n2019-06-17 13:42:04 Washington-Lambert Nicole_Trail 0243526550889 0.0\\n2019-06-17 14:42:04 Washington-Lambert Nicole_Trail 0243526550889 0.0\\n2019-06-17 13:42:04 Washington-Lambert Tamara_Greens 1416256267840 0.0\\n2019-06-17 14:42:04 Washington-Lambert Tamara_Greens 1416256267840 0.0\\n2019-06-17 13:42:04 Ortega__Nelson_and_Parrish Gallagher_Springs 6842603445464 0.0\\n2019-06-17 14:42:04 Ortega__Nelson_and_Parrish Gallagher_Springs 6842603445464 0.0\\nName: prediction, dtype: float64'"
179+
"'time device company data_center \\n2019-09-19 05:13:33 7599600092398 Gibson__Richardson_and_Manning Seth_Neck 0.0\\n2019-09-19 06:13:33 7599600092398 Gibson__Richardson_and_Manning Seth_Neck 0.0\\n2019-09-19 05:13:33 6886065399169 Phillips__Snyder_and_Carr Rowe_Mills 0.0\\n2019-09-19 06:13:33 6886065399169 Phillips__Snyder_and_Carr Rowe_Mills 0.0\\n2019-09-19 05:13:33 7113029207148 Flores_Inc Ramirez_Pine 0.0\\n2019-09-19 06:13:33 7113029207148 Flores_Inc Ramirez_Pine 0.0\\n2019-09-19 05:13:33 9745701250521 Sanchez__Thornton_and_Moyer Ronald_Summit 0.0\\n2019-09-19 06:13:33 9745701250521 Sanchez__Thornton_and_Moyer Ronald_Summit 0.0\\n2019-09-19 05:13:33 6674224246165 Flores_Inc Ramirez_Pine 0.0\\n2019-09-19 06:13:33 6674224246165 Flores_Inc Ramirez_Pine 0.0\\n2019-09-19 05:13:33 0272045277005 Smith-Ryan Lynn_Course 0.0\\n2019-09-19 06:13:33 0272045277005 Smith-Ryan Lynn_Course 0.0\\n2019-09-19 05:13:33 8096995049009 Jones__Scott_and_Ward Hart_Court 0.0\\n2019-09-19 06:13:33 8096995049009 Jones__Scott_and_Ward Hart_Court 0.0\\n2019-09-19 05:13:33 6989208433528 Smith-Ryan Lynn_Course 0.0\\n2019-09-19 06:13:33 6989208433528 Smith-Ryan Lynn_Course 0.0\\n2019-09-19 05:13:33 8833130028393 Smith-Ryan James_Landing 0.0\\n2019-09-19 06:13:33 8833130028393 Smith-Ryan James_Landing 0.0\\n2019-09-19 05:13:33 1925182175044 Jones__Scott_and_Ward Edward_Pike 0.0\\n2019-09-19 06:13:33 1925182175044 Jones__Scott_and_Ward Edward_Pike 0.0\\n2019-09-19 05:13:33 4677288158654 Phillips__Snyder_and_Carr Eric_Point 0.0\\n2019-09-19 06:13:33 4677288158654 Phillips__Snyder_and_Carr Eric_Point 0.0\\n2019-09-19 05:13:33 6686678612727 Phillips__Snyder_and_Carr Eric_Point 0.0\\n2019-09-19 06:13:33 6686678612727 Phillips__Snyder_and_Carr Eric_Point 0.0\\n2019-09-19 05:13:33 8295175714546 Flores_Inc Melissa_Inlet 0.0\\n2019-09-19 06:13:33 8295175714546 Flores_Inc Melissa_Inlet 0.0\\n2019-09-19 05:13:33 4203356660701 Sanchez__Thornton_and_Moyer Edwards_Trail 0.0\\n2019-09-19 06:13:33 4203356660701 Sanchez__Thornton_and_Moyer Edwards_Trail 0.0\\n2019-09-19 05:13:33 8156561105795 Gibson__Richardson_and_Manning Beltran_Key 0.0\\n2019-09-19 06:13:33 8156561105795 Gibson__Richardson_and_Manning Beltran_Key 0.0\\n2019-09-19 05:13:33 4569632589211 Jones__Scott_and_Ward Edward_Pike 0.0\\n2019-09-19 06:13:33 4569632589211 Jones__Scott_and_Ward Edward_Pike 0.0\\n2019-09-19 05:13:33 5805381901240 Gibson__Richardson_and_Manning Beltran_Key 0.0\\n2019-09-19 06:13:33 5805381901240 Gibson__Richardson_and_Manning Beltran_Key 0.0\\n2019-09-19 05:13:33 4174748504754 Sanchez__Thornton_and_Moyer Ronald_Summit 0.0\\n2019-09-19 06:13:33 4174748504754 Sanchez__Thornton_and_Moyer Ronald_Summit 0.0\\n2019-09-19 05:13:33 0383843381241 Sanchez__Thornton_and_Moyer Edwards_Trail 0.0\\n2019-09-19 06:13:33 0383843381241 Sanchez__Thornton_and_Moyer Edwards_Trail 0.0\\n2019-09-19 05:13:33 2168656006719 Jones__Scott_and_Ward Hart_Court 0.0\\n2019-09-19 06:13:33 2168656006719 Jones__Scott_and_Ward Hart_Court 0.0\\n2019-09-19 05:13:33 6358670320243 Gibson__Richardson_and_Manning Seth_Neck 0.0\\n2019-09-19 06:13:33 6358670320243 Gibson__Richardson_and_Manning Seth_Neck 0.0\\n2019-09-19 05:13:33 7161470941513 Smith-Ryan James_Landing 0.0\\n2019-09-19 06:13:33 7161470941513 Smith-Ryan James_Landing 0.0\\n2019-09-19 05:13:33 6372735259215 Phillips__Snyder_and_Carr Rowe_Mills 0.0\\n2019-09-19 06:13:33 6372735259215 Phillips__Snyder_and_Carr Rowe_Mills 0.0\\n2019-09-19 05:13:33 7342971671588 Flores_Inc Melissa_Inlet 0.0\\n2019-09-19 06:13:33 7342971671588 Flores_Inc Melissa_Inlet 0.0\\nName: prediction, dtype: float64'"
179180
]
180181
},
181182
"execution_count": 8,
@@ -421,6 +422,7 @@
421422
}
422423
],
423424
"source": [
425+
"# nuclio: ignore\n",
424426
"client.read(backend='tsdb', query='select avg(cpu_utilization) , avg(latency) , avg(packet_loss) , avg(throughput) from netops_metrics_jupyter group by company, data_center, device',\n",
425427
" start=\"now-1d\", end='now+1d', multi_index=True, step='5m').head(10)\n"
426428
]
@@ -453,5 +455,5 @@
453455
}
454456
},
455457
"nbformat": 4,
456-
"nbformat_minor": 2
458+
"nbformat_minor": 4
457459
}

0 commit comments

Comments
 (0)