-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.yaml
5074 lines (5074 loc) · 102 KB
/
project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
kind: project
metadata:
name: widsdb2
spec:
functions:
- name: prep
spec:
kind: job
metadata:
name: prep
tag: ''
project: widsdb2
spec:
command: ''
args: []
image: mlrun/ml-models
env:
- name: V3IO_API
value: ''
- name: V3IO_USERNAME
value: ''
- name: V3IO_ACCESS_KEY
value: ''
default_handler: trdata_prep
entry_points:
trdata_prep:
name: trdata_prep
doc: "process a raw icu data file\n\n* `encoded` is input for a cross\
\ validation and training function\n\nwidsutil module has various transform\
\ functions\nsteps (not necessarily in correct order, some parallel)\n\
* column name maps\n* deal with nans and other types of missings/junk\n\
* label encode binary and ordinal category columns\n* create category\
\ ranges from numerical columns\nAnd finally,\n* test\n\n\nTODO: \n\
\ * parallelize where possible\n * more abstraction (more parameters,\
\ chain sklearn transformers)\n * convert to marketplace function"
parameters:
- name: context
type: MLClientCtx
doc: the function execution context
default: ''
- name: src
type: DataItem
doc: an artifact or file path
default: ''
- name: file_ext
type: str
doc: file type for artifacts
default: csv
- name: train_enc
type: str
doc: key of encoded data table in artifact store
default: train_enc
outputs:
- default: ''
lineno: 22
description: ''
build:
functionSourceCode: IyBHZW5lcmF0ZWQgYnkgbnVjbGlvLmV4cG9ydC5OdWNsaW9FeHBvcnRlcgoKCmltcG9ydCBvcwoKaW1wb3J0IHN5cwpzeXMucGF0aC5hcHBlbmQoJy92M2lvL3Byb2plY3RzL3dpZHNkYjIvdXRpbCcpCgoKaW1wb3J0IGpzb24KaW1wb3J0IHBhbmRhcyBhcyBwZAppbXBvcnQgbnVtcHkgYXMgbnAKZnJvbSBjb2xsZWN0aW9ucyBpbXBvcnQgZGVmYXVsdGRpY3QKaW1wb3J0IHdpZHN1dGlsIGFzIHV0aWwKZnJvbSBjbG91ZHBpY2tsZSBpbXBvcnQgZHVtcHMsIGR1bXAsIGxvYWQKCgpmcm9tIG1scnVuLmV4ZWN1dGlvbiBpbXBvcnQgTUxDbGllbnRDdHgKZnJvbSBtbHJ1bi5kYXRhc3RvcmUgaW1w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6cGFyYW0gc3JjOiAgICAgICAgICAgICAgYW4gYXJ0aWZhY3Qgb3IgZmlsZSBwYXRoCiAgICA6cGFyYW0gZmlsZV9leHQ6ICAgICAgICAgZmlsZSB0eXBlIGZvciBhcnRpZmFjdHMKICAgIDpwYXJhbSB0cmFpbl9lbmM6ICAgICAgICBrZXkgb2YgZW5jb2RlZCBkYXRhIHRhYmxlIGluIGFydGlmYWN0IHN0b3JlCiAgICAiIiIKICAgIGRmID0gc3JjLmFzX2RmKCkKICAgIAogICAgZGF0YXByZXByb2Nlc3MgPXV0aWwuRGF0YVByZXByb2Nlc3MoZGYpCiAgICBkZiA9IGRhdGFwcmVwcm9jZXNzLnByZXByb2Nlc3MoKQoKICAgIGRmLmZpbGxuYShkZi5tZWFuKCksIGlucGxhY2U9VHJ1ZSkKCiAgICBjb250ZXh0LmxvZ19kYXRhc2V0KHRyYWluX2VuYywgZGY9ZGYsIGZvcm1hdD1maWxlX2V4dCwgaW5kZXg9RmFsc2UpCgo=
commands: []
code_origin: prep.ipynb
affinity: null
verbose: false
- name: train-wids
spec:
kind: job
metadata:
name: train-wids
tag: latest
hash: ac57b01232e7d6bf0ec08e68a6f87cf64728e063
project: widsdb2
categories: []
updated: '2021-07-01T11:08:37.142283+00:00'
spec:
command: ''
args: []
image: mlrun/ml-models
env:
- name: V3IO_API
value: ''
- name: V3IO_USERNAME
value: ''
- name: V3IO_ACCESS_KEY
value: ''
default_handler: train_wids
entry_points:
train_wids:
name: train_wids
doc: ''
parameters:
- name: context
type: MLClientCtx
default: ''
- name: dataset
type: DataItem
default: ''
- name: label_column
type: str
default: labels
outputs:
- default: ''
lineno: 39
description: ''
build:
functionSourceCode: IyBHZW5lcmF0ZWQgYnkgbnVjbGlvLmV4cG9ydC5OdWNsaW9FeHBvcnRlcgoKZnJvbSBza2xlYXJuIGltcG9ydCBsaW5lYXJfbW9kZWwKZnJvbSBza2xlYXJuIGltcG9ydCBkYXRhc2V0cwpmcm9tIHNrbGVhcm4ubW9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3RyYWluLnRvX2ZyYW1lKCldLCBheGlzPTEpLAogICAgICAgICAgICAgICAgICAgICAgICBmb3JtYXQ9J2NzdicsIGluZGV4PUZhbHNlLCAKICAgICAgICAgICAgICAgICAgICAgICAgYXJ0aWZhY3RfcGF0aD1jb250ZXh0LmFydGlmYWN0X3N1YnBhdGgoJ2RhdGEnKSkKCiAgICBjb250ZXh0LmxvZ19kYXRhc2V0KCd0ZXN0X3NldCcsIAogICAgICAgICAgICAgICAgICAgICAgICBkZj1wZC5jb25jYXQoW1hfdGVzdCwgeV90ZXN0LnRvX2ZyYW1lKCldLCBheGlzPTEpLAogICAgICAgICAgICAgICAgICAgICAgICBmb3JtYXQ9J2NzdicsIGluZGV4PUZhbHNlLCAKICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWxzPXsiZGF0YS10eXBlIjogImhlbGQtb3V0In0sCiAgICAgICAgICAgICAgICAgICAgICAgIGFydGlmYWN0X3BhdGg9Y29udGV4dC5hcnRpZmFjdF9zdWJwYXRoKCdkYXRhJykpCiAgIAoKICAgIGxwYXJhbXMgPSB7fQoKICAgIGV2YWxzID0ge30KICAgIGV2YWxzWydsZ2InXSA9IHt9CiAgICBscGFyYW1zID0ge30KCiAgICBzZWVkcyA9IFswLCAxXQogICAgbmZvbGQgPSBbNSwgNV0KICAgIHN0cmF0aWZpZWQ9W0ZhbHNlLCBGYWxzZV0KICAgIHNodWZmbGU9W1RydWUsIFRydWVdCiAgICBuX2VzdGltYXRvcnMgPSAzMDAwMAogICAgZWFybHlfc3RvcHBpbmdfcm91bmRzID0gMzAwCiAgICB2ZXJib3NlX2V2YWwgPSAyCiAgICBsZWFybmluZ19yYXRlID0gMC4wMQogICAgcmVnX2FscGhhID0gWzAuNCwgMV0KICAgIHJlZ19sYW1iZGEgPSBbMC43LCAxXQogICAgc3Vic2FtcGxlID0gWzAuNDUsIDFdCiAgICBjb2xzYW1wbGVfYnl0cmVlID0gWzAuMywgMC4yMjVdCiAgICBtYXhfZGVwdGggPSAtMQogICAgdmVyYm9zZSA9IDQKICAgIG5fam9icyA9IDQKICAgIAogICAgbHBhcmFtcyA9IGRpY3QoYm9vc3RpbmdfdHlwZT0nZ2JkdCcsCiAgICAgICAgICAgICAgIG9iamVjdGl2ZT0nYmluYXJ5JywKICAgICAgICAgICAgICAgbWV0cmljPSdhdWMnLAogICAgICAgICAgICAgICBsZWFybmluZ19yYXRlPSBsZWFybmluZ19yYXRlLAogICAgICAgICAgICAgICBudW1fbGVhdmVzPSAyMDAsCiAgICAgICAgICAgICAgIG1heF9iaW49NTAwLAogICAgICAgICAgICAgICBtaW5fY2hpbGRfd2VpZ2h0PSAwLjAzNSwKICAgICAgICAgICAgICAgc3Vic2FtcGxlPSBzdWJzYW1wbGVbMF0sCiAgICAgICAgICAgICAgIGNvbHNhbXBsZV9ieXRyZWU9IGNvbHNhbXBsZV9ieXRyZWVbMF0sCiAgICAgICAgICAgICAgIG1pbl9kYXRhX2luX2xlYWY9IDE1MCwKICAgICAgICAgICAgICAgbWF4X2RlcHRoPSBtYXhfZGVwdGgsCiAgICAgICAgICAgICAgIGJhZ2dpbmdfc2VlZD0gc2VlZHNbMF0sCiAgICAgICAgICAgICAgIHJlZ19hbHBoYT0gcmVnX2FscGhhWzBdLAogICAgICAgICAgICAgICByZWdfbGFtYmRhPSByZWdfbGFtYmRhWzBdLAogICAgICAgICAgICAgICB2ZXJib3NlPSB2ZXJib3NlLAogICAgICAgICAgICAgICBzZWVkPSBzZWVkc1swXSwKICAgICAgICAgICAgICAgbl9qb2JzPSBuX2pvYnMsKQoKICAgIGV2YWxzX3Jlc3VsdCA9IHt9CiAgICB0ZXN0X3ByZWRzID0gbnAuemVyb3MobGVuKFhfdGVzdCkpICAgIAogICAgZHRyYWluID0gbGdiLkRhdGFzZXQoWF90cmFpbiwgeV90cmFpbikKICAgIGR0ZXN0ID0gbGdiLkRhdGFzZXQoWF90ZXN0LCBsYWJlbD15X3Rlc3QpCiAgICAKICAgIHRlc3RsZW4gPSBYX3Rlc3Quc2hhcGVbMF0KICAgIAogICAgc2VlZCA9IHNlZWRzWzBdCiAgICBwcmludChmJ1RyYWluaW5nIE1vZGVsIHdpdGggU0VFRCA6IHtzZWVkfScpCiAgICBpPTAKICAgIG1vZGVsID0gbGdiLnRyYWluKGxwYXJhbXMsIGR0cmFpbiwgMTAwLCB2YWxpZF9zZXRzPWR0ZXN0LCBlYXJseV9zdG9wcGluZ19yb3VuZHM9NSwgZXZhbHNfcmVzdWx0PWV2YWxzX3Jlc3VsdCkKICAgIG1vZGVsLnNhdmVfbW9kZWwoJ21vZGVsLnR4dCcsIG51bV9pdGVyYXRpb249bW9kZWwuYmVzdF9pdGVyYXRpb24pCiAgICAKICAgCiAgIAogICAgCiAgICBwcmVkID0gbW9kZWwucHJlZGljdChYX3Rlc3QpCiAgICAKCiAgICBjb250ZXh0LmxvZ19tb2RlbCgibW9kZWwiLAogICAgICAgICAgICAgICAgICAgICAgYm9keT1kdW1wcyhtb2RlbCksCiAgICAgICAgICAgICAgICAgICAgICBtb2RlbF9maWxlPSJtb2RlbC5wa2wiLAogICAgICAgICAgICAgICAgICAgICAgbWV0cmljcz1jb250ZXh0LnJlc3VsdHMsCiAgICAgICAgICAgICAgICAgICAgICBsYWJlbHM9eyJjbGFzcyI6ICJsaWdodGdibSJ9KQogICAgCgo=
commands:
- pip install lightgbm
code_origin: train_wids.ipynb
affinity: null
verbose: false
- name: describe
spec:
kind: job
metadata:
name: describe
tag: ''
hash: 960a50becba96756596edff8ffc8c119ebe887a9
project: widsdb2
labels:
author: Iguazio
categories:
- analysis
spec:
command: ''
args: []
image: mlrun/mlrun
env:
- name: V3IO_API
value: ''
- name: V3IO_USERNAME
value: ''
- name: V3IO_ACCESS_KEY
value: ''
default_handler: summarize
entry_points:
summarize:
name: summarize
doc: Summarize a table
parameters:
- name: context
type: MLClientCtx
doc: the function context
default: ''
- name: table
type: DataItem
doc: MLRun input pointing to pandas dataframe (csv/parquet file path)
default: ''
- name: label_column
type: str
doc: ground truth column label
default: null
- name: class_labels
type: List[str]
doc: label for each class in tables and plots
default: []
- name: plot_hist
type: bool
doc: (True) set this to False for large tables
default: true
- name: plots_dest
type: str
doc: destination folder of summary plots (relative to artifact_path)
default: plots
- name: update_dataset
doc: when the table is a registered dataset update the charts in-place
default: false
outputs:
- default: ''
lineno: 21
description: describe and visualizes dataset stats
build:
functionSourceCode: IyBHZW5lcmF0ZWQgYnkgbnVjbGlvLmV4cG9ydC5OdWNsaW9FeHBvcnRlcgoKaW1wb3J0IHdhcm5pbmdzCndhcm5pbmdzLnNpbXBsZWZpbHRlcihhY3Rpb249J2lnbm9yZScsIGNhdGVnb3J5PUZ1dHVyZVdhcm5pbmcpCgppbXBvcnQgb3MKaW1wb3J0IG51bXB5IGFzIG5wCmltcG9ydCBwYW5kYXMgYXMgcGQKaW1wb3J0IG1hdHBsb3RsaWIucHlwbG90IGFzIHBsdAppbXBvcnQgc2VhYm9ybiBhcyBzbnMKCmZyb20gbWxydW4uZXhlY3V0aW9uIGltcG9ydCBNTENsaWVudEN0eApmcm9tIG1scnVuLmRhdGFzdG9yZSBpbXBvcnQgRGF0YUl0ZW0KZnJvbSBtbHJ1bi5hcnRpZmFjdHMgaW1wb3J0IFBsb3RBcnRpZmFjdCwgVGFibGVBcnRpZmFjdApmcm9tIG1scnVuLm1sdXRpbHMucGxvdHMgaW1wb3J0IGdjZl9jbGVhcgoKZnJvbSB0eXBpbmcgaW1wb3J0IExpc3QKCnBkLnNldF9vcHRpb24oImRpc3BsYXkuZmxvYXRfZm9ybWF0IiwgbGFtYmRhIHg6ICIlLjJmIiAlIHgpCgpkZWYgc3VtbWFyaXplKAogICAgY29udGV4dDogTUxDbGllbnRDdHgsCiAgICB0YWJsZTogRGF0YUl0ZW0sCiAgICBsYWJlbF9jb2x1bW46IHN0ciA9IE5vbmUsCiAgICBjbGFzc19sYWJlbHM6IExpc3Rbc3RyXSA9IFtdLAogICAgcGxvdF9oaXN0OiBib29sID0gVHJ1ZSwKICAgI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AgICAgICBleHRyYV9kYXRhWyJoaXN0b2dyYW1zIl0gPSBjb250ZXh0LmxvZ19hcnRpZmFjdChQbG90QXJ0aWZhY3QoImhpc3RvZ3JhbXMiLCAgYm9keT1wbHQuZ2NmKCkpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsX3BhdGg9ZiJ7cGxvdHNfZGVzdH0vaGlzdC5odG1sIiwgZGJfa2V5PUZhbHNlKQogICAgZXhjZXB0IEV4Y2VwdGlvbiBhcyBlOgogICAgICAgIGNvbnRleHQubG9nZ2VyLmVycm9yKGYnRmFpbGVkIHRvIGNyZWF0ZSBwYWlycGxvdCBoaXN0b2dyYW1zIGR1ZSB0bzoge2V9JykKICAgIAogICAgdHJ5OgogICAgICAgIGdjZl9jbGVhcihwbHQpCiAgICAgICAgcGxvdF9jb2xzID0gMwogICAgICAgIHBsb3Rfcm93cyA9IGludCgobGVuKGhlYWRlcikgLSAxKSAvIHBsb3RfY29scykrMQogICAgICAgIGZpZywgYXggPSBwbHQuc3VicGxvdHMocGxvdF9yb3dzLCBwbG90X2NvbHMsIGZpZ3NpemU9KDE1LCA0KSkKICAgICAgICBmaWcudGlnaHRfbGF5b3V0KHBhZD0yLjApCiAgICAgICAgZm9yIGkgaW4gcmFuZ2UocGxvdF9yb3dzICogcGxvdF9jb2xzKToKICAgICAgICAgICAgaWYgaSA8IGxlbihoZWFkZXIpOgogICAgICAgICAgICAgICAgc25zLnZpb2xpbnBsb3QoeD1kZltoZWFkZXJbaV1dLCBheD1heFtpbnQoaSAvIHBsb3RfY29scyldW2kgJSBwbG90X2NvbHNdLCAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yaWVudD0naCcsIHdpZHRoPTAuNywgaW5uZXI9InF1YXJ0aWxlIikKICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIGZpZy5kZWxheGVzKGF4W2ludChpIC8gcGxvdF9jb2xzKV1baSAlIHBsb3RfY29sc10pICAgICAgICAKICAgICAgICAgICAgaSs9MQogICAgICAgIGV4dHJhX2RhdGFbInZpb2xpbiJdID0gY29udGV4dC5sb2dfYXJ0aWZhY3QoUGxvdEFydGlmYWN0KCJ2aW9saW4iLCAgYm9keT1wbHQuZ2NmKCksIHRpdGxlPSdWaW9saW4gUGxvdCcpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9jYWxfcGF0aD1mIntwbG90c19kZXN0fS92aW9saW4uaHRtbCIsIGRiX2tleT1GYWxzZSkKICAgIGV4Y2VwdCBFeGNlcHRpb24gYXMgZToKICAgICAgICBjb250ZXh0LmxvZ2dlci53YXJuKGYnRmFpbGVkIHRvIGNyZWF0ZSB2aW9saW4gZGlzdHJpYnV0aW9uIHBsb3RzIGR1ZSB0bzoge2V9JykKCiAgICBpZiBsYWJlbF9jb2x1bW46IAogICAgICAgIGxhYmVscyA9IGRmLnBvcChsYWJlbF9jb2x1bW4pCiAgICAgICAgaW1idGFibGUgPSBsYWJlbHMudmFsdWVfY291bnRzKG5vcm1hbGl6ZT1UcnVlKS5zb3J0X2luZGV4KCkKICAgICAgICB0cnk6CiAgICAgICAgICAgIGdjZl9jbGVhcihwbHQpICAKICAgICAgICAgICAgYmFsYW5jZWJhciA9IGltYnRhYmxlLnBsb3Qoa2luZD0nYmFyJywgdGl0bGU9J2NsYXNzIGltYmFsYW5jZSAtIGxhYmVscycpCiAgICAgICAgICAgIGJhbGFuY2ViYXIuc2V0X3hsYWJlbCgnY2xhc3MnKQogICAgICAgICAgICBiYWxhbmNlYmFyLnNldF95bGFiZWwoInByb3BvcnRpb24gb2YgdG90YWwiKQogICAgICAgICAgICBleHRyYV9kYXRhWyJpbWJhbGFuY2UiXSA9IGNvbnRleHQubG9nX2FydGlmYWN0KFBsb3RBcnRpZmFjdCgiaW1iYWxhbmNlIiwgYm9keT1wbHQuZ2NmKCkpLCAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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: []
code_origin: https://github.com/mlrun/functions.git#8a7816038d1e23362b562eb2229032d34320ecce:/home/michaell/projects/temp/functions/describe/describe.ipynb
affinity: null
verbose: false
- name: test-classifier
spec:
kind: job
metadata:
name: test-classifier
tag: ''
hash: a1bab0bb911124cc4ac5beadc7a2354da1e56af3
project: widsdb2
labels:
author: yjb
framework: sklearn
categories:
- ml
- test
spec:
command: ''
args: []
image: mlrun/mlrun
env:
- name: V3IO_API
value: ''
- name: V3IO_USERNAME
value: ''
- name: V3IO_ACCESS_KEY
value: ''
default_handler: test_classifier
entry_points:
test_classifier:
name: test_classifier
doc: "Test one or more classifier models against held-out dataset\n\n\
Using held-out test features, evaluates the peformance of the estimated\
\ model\n\nCan be part of a kubeflow pipeline as a test step that is\
\ run post EDA and \ntraining/validation cycles"
parameters:
- name: context
doc: the function context
default: ''
- name: models_path
type: DataItem
doc: artifact models representing a file or a folder
default: ''
- name: test_set
type: DataItem
doc: test features and labels
default: ''
- name: label_column
type: str
doc: column name for ground truth labels
default: ''
- name: score_method
type: str
doc: for multiclass classification
default: micro
- name: plots_dest
type: str
doc: dir for test plots
default: ''
- name: model_evaluator
doc: 'NOT IMPLEMENTED: specific method to generate eval, passed in as
string or available in this folder'
default: null
- name: default_model
type: str
default: model.pkl
- name: predictions_column
type: str
doc: column name for the predictions column on the resulted artifact
default: yscore
- name: model_update
doc: (True) update model, when running as stand alone no need in update
default: true
outputs:
- default: ''
lineno: 15
description: test a classifier using held-out or new data
build:
functionSourceCode: IyBHZW5lcmF0ZWQgYnkgbnVjbGlvLmV4cG9ydC5OdWNsaW9FeHBvcnRlcgoKaW1wb3J0IHdhcm5pbmdzCndhcm5pbmdzLmZpbHRlcndhcm5pbmdzKCdpZ25vcmUnKQoKaW1wb3J0IG9zCmltcG9ydCBwYW5kYXMgYXMgcGQKCmZyb20gbWxydW4uZGF0YXN0b3JlIGltcG9ydCBEYXRhSXRlbQpmcm9tIG1scnVuLmFydGlmYWN0cyBpbXBvcnQgZ2V0X21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gInJiIikpCiAgICBleGNlcHQgRXhjZXB0aW9uIGFzIGE6CiAgICAgICAgcmFpc2UgRXhjZXB0aW9uKCJtb2RlbCBsb2NhdGlvbiBsaWtlbHkgc3BlY2lmaWVkIikKICAgIAogICAgZXh0cmFfZGF0YSA9IGV2YWxfbW9kZWxfdjIoY29udGV4dCwgeHRlc3QsIHl0ZXN0LnZhbHVlcywgbW9kZWxfb2JqKQogICAgaWYgbW9kZWxfb2JqIGFuZCBtb2RlbF91cGRhdGUgPT0gVHJ1ZToKICAgICAgICB1cGRhdGVfbW9kZWwobW9kZWxzX3BhdGgsIGV4dHJhX2RhdGE9ZXh0cmFfZGF0YSwgCiAgICAgICAgICAgICAgICAgICAgIG1ldHJpY3M9Y29udGV4dC5yZXN1bHRzLCBrZXlfcHJlZml4PSd2YWxpZGF0aW9uLScpCiAgICAKICAgIHlfaGF0ID0gbW9kZWxfb2JqLnByZWRpY3QoeHRlc3QpCiAgICBpZiB5X2hhdC5uZGltID09IDEgb3IgeV9oYXQuc2hhcGVbMV0gPT0gMToKICAgICAgICBzY29yZV9uYW1lcyA9IFtwcmVkaWN0aW9uc19jb2x1bW5dCiAgICBlbHNlOgogICAgICAgIHNjb3JlX25hbWVzID0gW2Yie3ByZWRpY3Rpb25zX2NvbHVtbn1fIiArIHN0cih4KSBmb3IgeCBpbiByYW5nZSh5X2hhdC5zaGFwZVsxXSldCgogICAgZGYgPSBwZC5jb25jYXQoW3h0ZXN0LCB5dGVzdCwgcGQuRGF0YUZyYW1lKHlfaGF0LCBjb2x1bW5zPXNjb3JlX25hbWVzKV0sIGF4aXM9MSkKICAgIGNvbnRleHQubG9nX2RhdGFzZXQoInRlc3Rfc2V0X3ByZWRzIiwgZGY9ZGYsIGZvcm1hdD0icGFycXVldCIsIGluZGV4PUZhbHNlKQoK
commands: []
code_origin: https://github.com/mlrun/functions.git#8a7816038d1e23362b562eb2229032d34320ecce:/home/michaell/projects/temp/functions/test_classifier/test_classifier.ipynb
affinity: null
verbose: false
- name: tstprep
spec:
kind: job
metadata:
name: tstprep
tag: ''
project: widsdb2
spec:
command: ''
args: []
image: mlrun/ml-models
env:
- name: V3IO_API
value: ''
- name: V3IO_USERNAME
value: ''
- name: V3IO_ACCESS_KEY
value: ''
default_handler: tstdata_prep
entry_points:
tstdata_prep:
name: tstdata_prep
doc: "process a raw churn data file\n\nData has 3 states here: `raw`,\
\ `cleaned` and `encoded`\n\n* `raw` kept by default, the pipeline begins\
\ with a raw data artifact\n* `cleaned` kept for charts, presentations\n\
* `encoded` is input for a cross validation and training function\n\n\
steps (not necessarily in correct order, some parallel)\n* column name\
\ maps\n* deal with nans and other types of missings/junk\n* label encode\
\ binary and ordinal category columns\n* create category ranges from\
\ numerical columns\nAnd finally,\n* test\n\nWhy we don't one-hot-encode\
\ here? One hot encoding isn't a necessary\nstep for all algorithms.\
\ It can also generate a very large feature\nmatrix that doesn't need\
\ to be serialized (even if sparse).\nSo we leave one-hot-encoding for\
\ the training step.\n\nWhat about scaling numerical columns? Same as\
\ why we don't one hot\nencode here. Do we scale before train-test split?\
\ IMHO, no. Scaling\nbefore splitting introduces a type of data leakage.\
\ In addition,\nmany estimators are completely immune to the monotonic\
\ transformations\nimplied by scaling, so why waste the cycles?\n\n\
TODO: \n * parallelize where possible\n * more abstraction (more\
\ parameters, chain sklearn transformers)\n * convert to marketplace\
\ function"
parameters:
- name: context
type: MLClientCtx
doc: the function execution context
default: ''
- name: src
type: DataItem
doc: an artifact or file path
default: ''
- name: file_ext
type: str
doc: file type for artifacts
default: csv
- name: test_enc
type: str
default: test_enc
outputs:
- default: ''
lineno: 22
description: ''
build:
functionSourceCode: IyBHZW5lcmF0ZWQgYnkgbnVjbGlvLmV4cG9ydC5OdWNsaW9FeHBvcnRlcgoKCgppbXBvcnQgb3MKCmltcG9ydCBzeXMKc3lzLnBhdGguYXBwZW5kKCcvdjNpby9wcm9qZWN0cy93aWRzZGIyL3V0aWwnKQoKCmltcG9ydCBqc29uCmltcG9ydCBwYW5k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GFpbiBza2xlYXJuIHRyYW5zZm9ybWVycykKICAgICAgICAqIGNvbnZlcnQgdG8gbWFya2V0cGxhY2UgZnVuY3Rpb24KICAgICAgICAKICAgIDpwYXJhbSBjb250ZXh0OiAgICAgICAgICB0aGUgZnVuY3Rpb24gZXhlY3V0aW9uIGNvbnRleHQKICAgIDpwYXJhbSBzcmM6ICAgICAgICAgICAgICBhbiBhcnRpZmFjdCBvciBmaWxlIHBhdGgKICAgIDpwYXJhbSBmaWxlX2V4dDogICAgICAgICBmaWxlIHR5cGUgZm9yIGFydGlmYWN0cwogICAgOnBhcmFtIG1vZGVsc19kZXN0OiAgICAgICBsYWJlbCBlbmNvZGVycyBhbmQgb3RoZXIgcHJlcHJvY2Vzc2luZyBzdGVwcwogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNob3VsZCBiZSBzYXZlZCB0b2dldGhlciB3aXRoIG90aGVyIHBpcGVsaW5lCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWxzCiAgICA6cGFyYW0gY2xlYW5lZF9rZXk6ICAgICAga2V5IG9mIGNsZWFuZWQgZGF0YSB0YWJsZSBpbiBhcnRpZmFjdCBzdG9yZQogICAgOnBhcmFtIGVuY29kZWRfa2V5OiAgICAgIGtleSBvZiBlbmNvZGVkIGRhdGEgdGFibGUgaW4gYXJ0aWZhY3Qgc3RvcmUKICAgICIiIgogICAgZGYgPSBzcmMuYXNfZGYoKQogICAgCiAgICBkYXRhcHJlcHJvY2VzcyA9dXRpbC5EYXRhUHJlcHJvY2VzcyhkZikKICAgIGRmID0gZGF0YXByZXByb2Nlc3MucHJlcHJvY2VzcygpCgogICAgZGYgPSBkZi5maWxsbmEoMCkKICAgIGNvbnRleHQubG9nX2RhdGFzZXQodGVzdF9lbmMsIGRmPWRmLCBmb3JtYXQ9ZmlsZV9leHQsIGluZGV4PUZhbHNlKQoK
commands: []
code_origin: tstprep.ipynb
affinity: null
verbose: false
- url: db://widsdb2/lightgbm-serving
name: lightgbm-serving
- url: hub://v2_model_tester
name: live_tester
- name: qnaserving
spec:
kind: serving
metadata:
name: qnaserving
tag: ''
project: widsdb2
labels:
author: Aruna
framework: WQnAModel
categories:
- serving
- ml
spec:
command: ''
args: []
image: ''
entry_points:
load:
name: load
doc: ''
parameters:
- name: self
default: ''
outputs:
- default: ''
lineno: 19
predict:
name: predict
doc: ''
parameters:
- name: self
default: ''
- name: body
default: ''
outputs:
- default: ''
lineno: 25
init_context:
name: init_context
doc: ''
parameters:
- name: context
default: ''
outputs:
- default: ''
lineno: 39
handler:
name: handler
doc: ''
parameters:
- name: context
default: ''
- name: event
default: ''
outputs:
- default: ''
lineno: 42
description: QnAServing
min_replicas: 1
max_replicas: 4
env: []
base_spec:
apiVersion: nuclio.io/v1
kind: Function
metadata:
annotations:
nuclio.io/generated_by: function generated from /User/icuhack/qnaserving.ipynb
labels: {}
name: qnaserving
spec:
build:
baseImage: mlrun/mlrun
commands:
- pip install cdqa
functionSourceCode: IyBHZW5lcmF0ZWQgYnkgbnVjbGlvLmV4cG9ydC5OdWNsaW9FeHBvcnRlcgoKaW1wb3J0IG9zCmZyb20gYXN0IGltcG9ydCBsaXRlcmFsX2V2YWwKZnJvbSBjZHFhLnBpcGVsaW5lIGltcG9ydCBRQVBpcGVsaW5lCmZyb20gY2RxYS51dGlscy5kb3dubG9hZCBpbXBvcnQgZG93bmxvYWRfbW9kZWwKaW1wb3J0IGpvYmxpYgppbXBvcnQgbnVtcHkgYXMgbnAKZnJvbSBjbG91ZHBpY2tsZSBpbXBvcnQgbG9hZAppbXBvcnQgbWxydW4KCmltcG9ydCBzeXMKc3lzLnBhdGguYXBwZW5kKCcvdjNpby9wcm9qZWN0cy93aWRzZGIyL3V0aWwnKQoKCgpjbGFzcyBRbkFNb2RlbChtbHJ1bi5zZXJ2aW5nLlYyTW9kZWxTZXJ2ZXIpOgogICAgCiAgICBkZWYgbG9hZChzZWxmKToKICAgICAgICBtb2RlbF9maWxlLCBleHRyYV9kYXRhID0gc2VsZi5nZXRfbW9kZWwoJy5wa2wnKQogICAgICAgIHByaW50KG1vZGVsX2ZpbGUpCiAgICAgICAgc2VsZi5tb2RlbCA9IGpvYmxpYi5sb2FkKG1vZGVsX2ZpbGUsIG1tYXBfbW9kZT0ncicpCiAgICAgCgogICAgZGVmIHByZWRpY3Qoc2VsZiwgYm9keSk6CiAgICAgICAgdHJ5OgogICAgICAgICAgICBmZWF0cyA9IG5wLmFzYXJyYXkoYm9keVsnaW5wdXRzJ10pCiAgICAgICAgICAgIHByaW50KGZlYXRzKQogICAgICAgICAgICBxdWVyeSA9IGJvZHlbJ2lucHV0cyddWzBdWydxdWVyeSddCiAgICAgICAgICAgIHByaW50KHF1ZXJ5KQogICAgICAgICAgICBwcmVkaWN0aW9uID0gc2VsZi5tb2RlbC5wcmVkaWN0KHF1ZXJ5LCAzKQogICAgICAgICAgICBwcmludChwcmVkaWN0aW9uKQogICAgICAgICAgICByZXR1cm4gcHJlZGljdGlvbgogICAgICAgIGV4Y2VwdCBFeGNlcHRpb24gYXMgZXhjOgogICAgICAgICAgICByYWlzZSBFeGNlcHRpb24oZiJGYWlsZWQgdG8gcHJlZGljdCB7ZXhjfSIpCgoKZnJvbSBtbHJ1bi5ydW50aW1lcyBpbXBvcnQgbnVjbGlvX2luaXRfaG9vawpkZWYgaW5pdF9jb250ZXh0KGNvbnRleHQpOgogICAgbnVjbGlvX2luaXRfaG9vayhjb250ZXh0LCBnbG9iYWxzKCksICdzZXJ2aW5nX3YyJykKCmRlZiBoYW5kbGVyKGNvbnRleHQsIGV2ZW50KToKICAgIHJldHVybiBjb250ZXh0Lm1scnVuX2hhbmRsZXIoY29udGV4dCwgZXZlbnQpCg==
noBaseImagesPull: true
env: []
handler: qnaserving:handler
runtime: python:3.6
volumes: []
source: ''
function_kind: serving_v2
graph:
kind: router
full_event: true
routes:
bertqa_model:
kind: task
class_name: QnAModel
class_args:
model_path: /v3io/projects/widsdb2/util/bertqa.pkl
full_event: true
default_class: QnAModel
build:
commands: []
code_origin: QnAserving.ipynb
secret_sources: []
affinity: null
verbose: false
workflows:
- name: main
path: workflow.py
- name: infer
path: wf.py
artifacts:
- key: raw_train_data
kind: dataset
iter: 0
tree: latest
target_path: v3io:///projects/widsdb2/artifacts/raw_train_data.csv
format: csv
size: 87383729
db_key: raw_train_data
schema:
fields:
- name: index
type: integer
- name: index
type: integer
- name: encounter_id
type: integer
- name: hospital_id
type: integer
- name: age
type: number
- name: bmi
type: number
- name: elective_surgery
type: integer
- name: ethnicity
type: string
- name: gender
type: string
- name: height
type: number
- name: hospital_admit_source
type: string
- name: icu_admit_source
type: string
- name: icu_id
type: integer
- name: icu_stay_type
type: string
- name: icu_type
type: string
- name: pre_icu_los_days
type: number
- name: readmission_status
type: integer
- name: weight
type: number
- name: albumin_apache
type: number
- name: apache_2_diagnosis
type: number
- name: apache_3j_diagnosis
type: number
- name: apache_post_operative
type: integer
- name: arf_apache
type: integer
- name: bilirubin_apache
type: number
- name: bun_apache
type: number
- name: creatinine_apache
type: number
- name: fio2_apache
type: number
- name: gcs_eyes_apache
type: number
- name: gcs_motor_apache
type: number
- name: gcs_unable_apache
type: number
- name: gcs_verbal_apache
type: number
- name: glucose_apache
type: number
- name: heart_rate_apache
type: number
- name: hematocrit_apache
type: number
- name: intubated_apache
type: integer
- name: map_apache
type: number
- name: paco2_apache
type: number
- name: paco2_for_ph_apache
type: number
- name: pao2_apache
type: number
- name: ph_apache
type: number
- name: resprate_apache
type: number
- name: sodium_apache
type: number
- name: temp_apache
type: number
- name: urineoutput_apache
type: number
- name: ventilated_apache
type: integer
- name: wbc_apache
type: number
- name: d1_diasbp_invasive_max
type: number
- name: d1_diasbp_invasive_min
type: number
- name: d1_diasbp_max
type: number
- name: d1_diasbp_min
type: number
- name: d1_diasbp_noninvasive_max
type: number
- name: d1_diasbp_noninvasive_min
type: number
- name: d1_heartrate_max
type: number
- name: d1_heartrate_min
type: number
- name: d1_mbp_invasive_max
type: number
- name: d1_mbp_invasive_min
type: number
- name: d1_mbp_max
type: number
- name: d1_mbp_min
type: number
- name: d1_mbp_noninvasive_max
type: number
- name: d1_mbp_noninvasive_min
type: number
- name: d1_resprate_max
type: number
- name: d1_resprate_min
type: number
- name: d1_spo2_max
type: number
- name: d1_spo2_min
type: number
- name: d1_sysbp_invasive_max
type: number
- name: d1_sysbp_invasive_min
type: number
- name: d1_sysbp_max
type: number
- name: d1_sysbp_min
type: number
- name: d1_sysbp_noninvasive_max
type: number
- name: d1_sysbp_noninvasive_min
type: number
- name: d1_temp_max
type: number
- name: d1_temp_min
type: number
- name: h1_diasbp_invasive_max
type: number
- name: h1_diasbp_invasive_min
type: number
- name: h1_diasbp_max
type: number
- name: h1_diasbp_min
type: number
- name: h1_diasbp_noninvasive_max
type: number
- name: h1_diasbp_noninvasive_min
type: number
- name: h1_heartrate_max
type: number
- name: h1_heartrate_min
type: number
- name: h1_mbp_invasive_max
type: number
- name: h1_mbp_invasive_min
type: number
- name: h1_mbp_max
type: number
- name: h1_mbp_min
type: number
- name: h1_mbp_noninvasive_max
type: number
- name: h1_mbp_noninvasive_min
type: number
- name: h1_resprate_max
type: number
- name: h1_resprate_min
type: number
- name: h1_spo2_max
type: number
- name: h1_spo2_min
type: number
- name: h1_sysbp_invasive_max
type: number
- name: h1_sysbp_invasive_min
type: number
- name: h1_sysbp_max
type: number
- name: h1_sysbp_min
type: number
- name: h1_sysbp_noninvasive_max
type: number
- name: h1_sysbp_noninvasive_min
type: number
- name: h1_temp_max
type: number
- name: h1_temp_min
type: number
- name: d1_albumin_max
type: number
- name: d1_albumin_min
type: number
- name: d1_bilirubin_max
type: number
primaryKey:
- index
pandas_version: 0.20.0
header:
- index
- encounter_id
- hospital_id
- age
- bmi
- elective_surgery
- ethnicity
- gender
- height
- hospital_admit_source
- icu_admit_source
- icu_id
- icu_stay_type
- icu_type
- pre_icu_los_days
- readmission_status
- weight
- albumin_apache
- apache_2_diagnosis
- apache_3j_diagnosis
- apache_post_operative
- arf_apache
- bilirubin_apache
- bun_apache
- creatinine_apache
- fio2_apache
- gcs_eyes_apache
- gcs_motor_apache
- gcs_unable_apache
- gcs_verbal_apache
- glucose_apache
- heart_rate_apache
- hematocrit_apache
- intubated_apache
- map_apache
- paco2_apache
- paco2_for_ph_apache
- pao2_apache
- ph_apache
- resprate_apache
- sodium_apache
- temp_apache
- urineoutput_apache
- ventilated_apache
- wbc_apache
- d1_diasbp_invasive_max
- d1_diasbp_invasive_min
- d1_diasbp_max
- d1_diasbp_min
- d1_diasbp_noninvasive_max
- d1_diasbp_noninvasive_min
- d1_heartrate_max
- d1_heartrate_min
- d1_mbp_invasive_max
- d1_mbp_invasive_min
- d1_mbp_max
- d1_mbp_min
- d1_mbp_noninvasive_max
- d1_mbp_noninvasive_min
- d1_resprate_max
- d1_resprate_min
- d1_spo2_max
- d1_spo2_min
- d1_sysbp_invasive_max
- d1_sysbp_invasive_min
- d1_sysbp_max
- d1_sysbp_min
- d1_sysbp_noninvasive_max
- d1_sysbp_noninvasive_min
- d1_temp_max
- d1_temp_min
- h1_diasbp_invasive_max
- h1_diasbp_invasive_min
- h1_diasbp_max
- h1_diasbp_min
- h1_diasbp_noninvasive_max
- h1_diasbp_noninvasive_min
- h1_heartrate_max
- h1_heartrate_min
- h1_mbp_invasive_max
- h1_mbp_invasive_min
- h1_mbp_max
- h1_mbp_min
- h1_mbp_noninvasive_max
- h1_mbp_noninvasive_min
- h1_resprate_max
- h1_resprate_min
- h1_spo2_max
- h1_spo2_min
- h1_sysbp_invasive_max
- h1_sysbp_invasive_min
- h1_sysbp_max
- h1_sysbp_min
- h1_sysbp_noninvasive_max
- h1_sysbp_noninvasive_min
- h1_temp_max
- h1_temp_min
- d1_albumin_max
- d1_albumin_min
- d1_bilirubin_max
length: 130157
preview:
- - 1
- 214826
- 118
- 68.0
- 22.73280282
- 0
- Caucasian
- M
- 180.3
- Floor
- Floor
- 92
- admit
- CTICU
- 0.541666667
- 0
- 73.9
- 2.3
- 113.0
- 502.01
- 0
- 0
- 0.4
- 31.0
- 2.51
- .nan
- 3.0
- 6.0
- 0.0
- 4.0
- 168.0
- 118.0
- 27.4
- 0
- 40.0
- .nan
- .nan
- .nan
- .nan
- 36.0
- 134.0
- 39.3
- .nan
- 0
- 14.1
- 46.0
- 32.0
- 68.0
- 37.0
- 68.0
- 37.0
- 119.0
- 72.0
- 66.0
- 40.0
- 89.0
- 46.0
- 89.0
- 46.0
- 34.0
- 10.0
- 100.0
- 74.0
- 122.0
- 64.0
- 131.0
- 73.0
- 131.0
- 73.0
- 39.9
- 37.2
- .nan
- .nan
- 68.0
- 63.0
- 68.0
- 63.0
- 119.0
- 108.0
- .nan
- .nan
- 86.0
- 85.0
- 86.0
- 85.0
- 26.0
- 18.0
- 100.0
- 74.0
- .nan
- .nan
- 131.0
- 115.0
- 131.0
- 115.0
- 39.5
- 37.5
- 2.3
- 2.3
- 0.4
- - 2
- 246060
- 81
- 77.0
- 27.421875
- 0
- Caucasian
- F
- 160.0
- Floor
- Floor
- 90
- admit
- Med-Surg ICU
- 0.927777778
- 0
- 70.2
- .nan
- 108.0
- 203.01
- 0
- 0
- .nan
- 9.0
- 0.56
- 1.0
- 1.0
- 3.0
- 0.0
- 1.0
- 145.0
- 120.0
- 36.9
- 0
- 46.0
- 37.0
- 37.0
- 51.0
- 7.45
- 33.0
- 145.0
- 35.1
- .nan
- 1
- 12.7
- .nan
- .nan
- 95.0
- 31.0
- 95.0
- 31.0
- 118.0
- 72.0
- .nan
- .nan
- 120.0
- 38.0
- 120.0
- 38.0
- 32.0
- 12.0
- 100.0
- 70.0
- .nan
- .nan
- 159.0
- 67.0
- 159.0
- 67.0
- 36.3
- 35.1
- .nan
- .nan
- 61.0
- 48.0
- 61.0
- 48.0
- 114.0
- 100.0
- .nan
- .nan
- 85.0
- 57.0
- 85.0
- 57.0
- 31.0
- 28.0
- 95.0
- 70.0
- .nan
- .nan
- 95.0
- 71.0
- 95.0
- 71.0
- 36.3
- 36.3
- 1.6
- 1.6
- 0.5
- - 3
- 276985
- 118
- 25.0
- 31.95274882
- 0
- Caucasian
- F
- 172.7
- Emergency Department
- Accident & Emergency
- 93
- admit
- Med-Surg ICU
- 0.000694444
- 0
- 95.3
- .nan
- 122.0
- 703.03
- 0
- 0
- .nan
- .nan
- .nan
- .nan
- 3.0
- 6.0
- 0.0
- 5.0
- .nan
- 102.0
- .nan
- 0
- 68.0
- .nan
- .nan
- .nan
- .nan
- 37.0
- .nan
- 36.7
- .nan
- 0
- .nan
- .nan
- .nan
- 88.0
- 48.0