Skip to content

Commit 3625398

Browse files
authored
Merge pull request #116 from afelix-95/main
Update 'Deploy to batch endpoint.ipynb'
2 parents de54441 + d6c2a53 commit 3625398

File tree

1 file changed

+1
-72
lines changed

1 file changed

+1
-72
lines changed

Labs/11/Deploy to batch endpoint.ipynb

+1-72
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
"metadata": {
2424
"gather": {
2525
"logged": 1667816557578
26-
},
27-
"vscode": {
28-
"languageId": "python"
2926
}
3027
},
3128
"outputs": [],
@@ -51,9 +48,6 @@
5148
"metadata": {
5249
"gather": {
5350
"logged": 1667816564779
54-
},
55-
"vscode": {
56-
"languageId": "python"
5751
}
5852
},
5953
"outputs": [],
@@ -76,9 +70,6 @@
7670
"metadata": {
7771
"gather": {
7872
"logged": 1667816570921
79-
},
80-
"vscode": {
81-
"languageId": "python"
8273
}
8374
},
8475
"outputs": [],
@@ -118,9 +109,6 @@
118109
"transient": {
119110
"deleting": false
120111
}
121-
},
122-
"vscode": {
123-
"languageId": "python"
124112
}
125113
},
126114
"outputs": [],
@@ -165,9 +153,6 @@
165153
"transient": {
166154
"deleting": false
167155
}
168-
},
169-
"vscode": {
170-
"languageId": "python"
171156
}
172157
},
173158
"outputs": [],
@@ -201,9 +186,6 @@
201186
"transient": {
202187
"deleting": false
203188
}
204-
},
205-
"vscode": {
206-
"languageId": "python"
207189
}
208190
},
209191
"outputs": [],
@@ -271,9 +253,6 @@
271253
"transient": {
272254
"deleting": false
273255
}
274-
},
275-
"vscode": {
276-
"languageId": "python"
277256
}
278257
},
279258
"outputs": [],
@@ -323,9 +302,6 @@
323302
"transient": {
324303
"deleting": false
325304
}
326-
},
327-
"vscode": {
328-
"languageId": "python"
329305
}
330306
},
331307
"outputs": [],
@@ -364,9 +340,6 @@
364340
"transient": {
365341
"deleting": false
366342
}
367-
},
368-
"vscode": {
369-
"languageId": "python"
370343
}
371344
},
372345
"outputs": [],
@@ -401,9 +374,6 @@
401374
"transient": {
402375
"deleting": false
403376
}
404-
},
405-
"vscode": {
406-
"languageId": "python"
407377
}
408378
},
409379
"outputs": [],
@@ -440,9 +410,6 @@
440410
"transient": {
441411
"deleting": false
442412
}
443-
},
444-
"vscode": {
445-
"languageId": "python"
446413
}
447414
},
448415
"outputs": [],
@@ -468,9 +435,6 @@
468435
"transient": {
469436
"deleting": false
470437
}
471-
},
472-
"vscode": {
473-
"languageId": "python"
474438
}
475439
},
476440
"outputs": [],
@@ -507,42 +471,13 @@
507471
"transient": {
508472
"deleting": false
509473
}
510-
},
511-
"vscode": {
512-
"languageId": "python"
513474
}
514475
},
515476
"outputs": [],
516477
"source": [
517478
"ml_client.jobs.download(name=job.name, download_path=\".\", output_name=\"score\")"
518479
]
519480
},
520-
{
521-
"cell_type": "code",
522-
"execution_count": null,
523-
"metadata": {
524-
"gather": {
525-
"logged": 1667817544534
526-
},
527-
"jupyter": {
528-
"outputs_hidden": false,
529-
"source_hidden": false
530-
},
531-
"nteract": {
532-
"transient": {
533-
"deleting": false
534-
}
535-
},
536-
"vscode": {
537-
"languageId": "python"
538-
}
539-
},
540-
"outputs": [],
541-
"source": [
542-
"with open(\"predictions.csv\", \"r\") as f:\n",
543-
" data = f.read()"
544-
]
545-
},
546481
{
547482
"cell_type": "code",
548483
"execution_count": null,
@@ -558,19 +493,13 @@
558493
"transient": {
559494
"deleting": false
560495
}
561-
},
562-
"vscode": {
563-
"languageId": "python"
564496
}
565497
},
566498
"outputs": [],
567499
"source": [
568-
"from ast import literal_eval\n",
569500
"import pandas as pd\n",
570501
"\n",
571-
"score = pd.DataFrame(\n",
572-
" literal_eval(data.replace(\"\\n\", \",\")), columns=[\"file\", \"prediction\"]\n",
573-
")\n",
502+
"score = pd.read_csv(\"predictions.csv\", index_col=0, names=[\"patient\", \"prediction\", \"file\"])\n",
574503
"score"
575504
]
576505
}

0 commit comments

Comments
 (0)