Skip to content

Commit ea656d7

Browse files
authored
Ontology updates ( Instructions --> Name)
1 parent 2df204f commit ea656d7

File tree

1 file changed

+67
-52
lines changed

1 file changed

+67
-52
lines changed

examples/prediction_upload/image_predictions.ipynb

Lines changed: 67 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,25 @@
9494
"!pip install -q 'labelbox[data]'"
9595
],
9696
"metadata": {
97-
"id": "cm8xMaLbGb7v"
97+
"id": "cm8xMaLbGb7v",
98+
"outputId": "7c03c878-a503-4729-e97b-89dcfd0fc2be",
99+
"colab": {
100+
"base_uri": "https://localhost:8080/"
101+
}
98102
},
99-
"execution_count": null,
100-
"outputs": []
103+
"execution_count": 1,
104+
"outputs": [
105+
{
106+
"output_type": "stream",
107+
"name": "stdout",
108+
"text": [
109+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m187.7/187.7 KB\u001b[0m \u001b[31m4.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
110+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m43.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
111+
"\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
112+
" Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
113+
]
114+
}
115+
]
101116
},
102117
{
103118
"cell_type": "code",
@@ -111,7 +126,7 @@
111126
"metadata": {
112127
"id": "NIq-6M9kHKSs"
113128
},
114-
"execution_count": null,
129+
"execution_count": 2,
115130
"outputs": []
116131
},
117132
{
@@ -133,7 +148,7 @@
133148
"metadata": {
134149
"id": "z7ZLKLYLHP__"
135150
},
136-
"execution_count": null,
151+
"execution_count": 3,
137152
"outputs": []
138153
},
139154
{
@@ -165,7 +180,7 @@
165180
"metadata": {
166181
"id": "v5wL6oojz9Ge"
167182
},
168-
"execution_count": null,
183+
"execution_count": 4,
169184
"outputs": []
170185
},
171186
{
@@ -205,7 +220,7 @@
205220
"metadata": {
206221
"id": "I75K-wx7_sDs"
207222
},
208-
"execution_count": null,
223+
"execution_count": 5,
209224
"outputs": []
210225
},
211226
{
@@ -242,7 +257,7 @@
242257
"metadata": {
243258
"id": "b2UjSoYez9I1"
244259
},
245-
"execution_count": null,
260+
"execution_count": 6,
246261
"outputs": []
247262
},
248263
{
@@ -277,7 +292,7 @@
277292
"metadata": {
278293
"id": "xCU4JRP0z9Nh"
279294
},
280-
"execution_count": null,
295+
"execution_count": 7,
281296
"outputs": []
282297
},
283298
{
@@ -322,7 +337,7 @@
322337
"metadata": {
323338
"id": "gAIzsxEjLmhv"
324339
},
325-
"execution_count": null,
340+
"execution_count": 8,
326341
"outputs": []
327342
},
328343
{
@@ -370,7 +385,7 @@
370385
"metadata": {
371386
"id": "jRwfE4MFz9Ph"
372387
},
373-
"execution_count": null,
388+
"execution_count": 9,
374389
"outputs": []
375390
},
376391
{
@@ -393,7 +408,7 @@
393408
"metadata": {
394409
"id": "PBB37YpWTiVR"
395410
},
396-
"execution_count": null,
411+
"execution_count": 10,
397412
"outputs": []
398413
},
399414
{
@@ -437,7 +452,7 @@
437452
"metadata": {
438453
"id": "39vz-tYsz9Ry"
439454
},
440-
"execution_count": null,
455+
"execution_count": 11,
441456
"outputs": []
442457
},
443458
{
@@ -464,7 +479,7 @@
464479
"metadata": {
465480
"id": "UelSiWN2z9Tg"
466481
},
467-
"execution_count": null,
482+
"execution_count": 12,
468483
"outputs": []
469484
},
470485
{
@@ -520,7 +535,7 @@
520535
"metadata": {
521536
"id": "mrjb8qY3z9VY"
522537
},
523-
"execution_count": null,
538+
"execution_count": 13,
524539
"outputs": []
525540
},
526541
{
@@ -549,24 +564,24 @@
549564
"colab": {
550565
"base_uri": "https://localhost:8080/"
551566
},
552-
"outputId": "9f4d0970-d26e-438b-da20-8d09d8b3b665"
567+
"outputId": "83945c20-debc-484c-a3c8-79c46a2687dc"
553568
},
554-
"execution_count": null,
569+
"execution_count": 14,
555570
"outputs": [
556571
{
557572
"output_type": "stream",
558573
"name": "stdout",
559574
"text": [
560575
"<DataRow {\n",
561-
" \"created_at\": \"2023-02-08 15:34:40+00:00\",\n",
576+
" \"created_at\": \"2023-02-10 14:52:01+00:00\",\n",
562577
" \"external_id\": null,\n",
563-
" \"global_key\": \"19bdf9f3-fe33-40b5-aa70-8e13dd2896ca\",\n",
578+
" \"global_key\": \"2830605d-dc77-4b34-ba7f-ad1a6ef76d72\",\n",
564579
" \"media_attributes\": {},\n",
565580
" \"metadata\": [],\n",
566581
" \"metadata_fields\": [],\n",
567582
" \"row_data\": \"https://storage.googleapis.com/labelbox-datasets/image_sample_data/2560px-Kitano_Street_Kobe01s5s4110.jpeg\",\n",
568-
" \"uid\": \"cldvu0iew12rs07v50oys1y4o\",\n",
569-
" \"updated_at\": \"2023-02-08 15:34:40+00:00\"\n",
583+
" \"uid\": \"cldyndd996b3u07zx7560b4v9\",\n",
584+
" \"updated_at\": \"2023-02-10 14:52:01+00:00\"\n",
570585
"}>\n"
571586
]
572587
}
@@ -589,33 +604,33 @@
589604
" classifications=[ # List of Classification objects\n",
590605
" lb.Classification( # Radio classification given the name \"text\" with two options: \"first_radio_answer\" and \"second_radio_answer\"\n",
591606
" class_type=lb.Classification.Type.RADIO,\n",
592-
" instructions=\"radio_question\", \n",
607+
" name=\"radio_question\", \n",
593608
" options=[\n",
594609
" lb.Option(value=\"first_radio_answer\"),\n",
595610
" lb.Option(value=\"second_radio_answer\")\n",
596611
" ]\n",
597612
" ),\n",
598613
" lb.Classification( # Checklist classification given the name \"text\" with two options: \"first_checklist_answer\" and \"second_checklist_answer\"\n",
599614
" class_type=lb.Classification.Type.CHECKLIST,\n",
600-
" instructions=\"checklist_question\", \n",
615+
" name=\"checklist_question\", \n",
601616
" options=[\n",
602617
" lb.Option(value=\"first_checklist_answer\"),\n",
603618
" lb.Option(value=\"second_checklist_answer\")\n",
604619
" ]\n",
605620
" ), \n",
606621
" lb.Classification( # Text classification given the name \"text\"\n",
607622
" class_type=lb.Classification.Type.TEXT,\n",
608-
" instructions=\"free_text\"\n",
623+
" name=\"free_text\"\n",
609624
" ),\n",
610625
" lb.Classification(\n",
611626
" class_type=lb.Classification.Type.RADIO,\n",
612-
" instructions=\"nested_radio_question\",\n",
627+
" name=\"nested_radio_question\",\n",
613628
" options=[\n",
614629
" lb.Option(\"first_radio_answer\",\n",
615630
" options=[\n",
616631
" lb.Classification(\n",
617632
" class_type=lb.Classification.Type.RADIO,\n",
618-
" instructions=\"sub_radio_question\",\n",
633+
" name=\"sub_radio_question\",\n",
619634
" options=[lb.Option(\"first_sub_radio_answer\")]\n",
620635
" )\n",
621636
" ]\n",
@@ -624,13 +639,13 @@
624639
" ),\n",
625640
" lb.Classification(\n",
626641
" class_type=lb.Classification.Type.CHECKLIST,\n",
627-
" instructions=\"nested_checklist_question\",\n",
642+
" name=\"nested_checklist_question\",\n",
628643
" options=[\n",
629644
" lb.Option(\"first_checklist_answer\",\n",
630645
" options=[\n",
631646
" lb.Classification(\n",
632647
" class_type=lb.Classification.Type.CHECKLIST,\n",
633-
" instructions=\"sub_checklist_question\", \n",
648+
" name=\"sub_checklist_question\", \n",
634649
" options=[lb.Option(\"first_sub_checklist_answer\")]\n",
635650
" )\n",
636651
" ]\n",
@@ -648,7 +663,7 @@
648663
" classifications=[\n",
649664
" lb.Classification(\n",
650665
" class_type=lb.Classification.Type.RADIO,\n",
651-
" instructions=\"sub_radio_question\",\n",
666+
" name=\"sub_radio_question\",\n",
652667
" options=[\n",
653668
" lb.Option(value=\"first_sub_radio_answer\")\n",
654669
" ]\n",
@@ -674,7 +689,7 @@
674689
"metadata": {
675690
"id": "Kt4XWWqgIiWk"
676691
},
677-
"execution_count": null,
692+
"execution_count": 15,
678693
"outputs": []
679694
},
680695
{
@@ -698,7 +713,7 @@
698713
"metadata": {
699714
"id": "8n-AvzdiOR6d"
700715
},
701-
"execution_count": null,
716+
"execution_count": 16,
702717
"outputs": []
703718
},
704719
{
@@ -720,9 +735,9 @@
720735
"colab": {
721736
"base_uri": "https://localhost:8080/"
722737
},
723-
"outputId": "e0b4c92c-1415-4557-e134-60323b167442"
738+
"outputId": "d58a40ac-bd0b-4006-87f1-0d79c4703a61"
724739
},
725-
"execution_count": null,
740+
"execution_count": 17,
726741
"outputs": [
727742
{
728743
"output_type": "execute_result",
@@ -732,7 +747,7 @@
732747
]
733748
},
734749
"metadata": {},
735-
"execution_count": 84
750+
"execution_count": 17
736751
}
737752
]
738753
},
@@ -777,7 +792,7 @@
777792
"metadata": {
778793
"id": "zv2OLTXKSGWv"
779794
},
780-
"execution_count": null,
795+
"execution_count": 18,
781796
"outputs": []
782797
},
783798
{
@@ -816,7 +831,7 @@
816831
"metadata": {
817832
"id": "F-Y7sSyAV3tn"
818833
},
819-
"execution_count": null,
834+
"execution_count": 19,
820835
"outputs": []
821836
},
822837
{
@@ -844,9 +859,9 @@
844859
"colab": {
845860
"base_uri": "https://localhost:8080/"
846861
},
847-
"outputId": "cd1c04aa-31a8-4891-b1db-ef28d1469539"
862+
"outputId": "a0f083b9-69ca-4da1-84e5-1b8e9df5d1d4"
848863
},
849-
"execution_count": null,
864+
"execution_count": 20,
850865
"outputs": [
851866
{
852867
"output_type": "stream",
@@ -890,12 +905,12 @@
890905
],
891906
"metadata": {
892907
"id": "jEtoDiDrPFvI",
893-
"outputId": "48a0f1d3-2c79-41bf-d739-a7e84e74749a",
908+
"outputId": "25424674-fa97-4b9b-d1c0-8e16d7366c87",
894909
"colab": {
895910
"base_uri": "https://localhost:8080/"
896911
}
897912
},
898-
"execution_count": null,
913+
"execution_count": 21,
899914
"outputs": [
900915
{
901916
"output_type": "stream",
@@ -929,19 +944,19 @@
929944
"colab": {
930945
"base_uri": "https://localhost:8080/"
931946
},
932-
"outputId": "9ab1b671-b3a3-4056-bf45-7bda1d6e20a0"
947+
"outputId": "e3b38d7b-9623-4467-b3f2-6f1ebe2cea41"
933948
},
934-
"execution_count": null,
949+
"execution_count": 22,
935950
"outputs": [
936951
{
937952
"output_type": "execute_result",
938953
"data": {
939954
"text/plain": [
940-
"<Batch ID: 2374e520-a7c6-11ed-8123-cf5deef7e8cf>"
955+
"<Batch ID: 865e8ff0-a952-11ed-b4e7-81bd51991e76>"
941956
]
942957
},
943958
"metadata": {},
944-
"execution_count": 89
959+
"execution_count": 22
945960
}
946961
]
947962
},
@@ -1096,7 +1111,7 @@
10961111
"metadata": {
10971112
"id": "A8_HVvu9Uvfl"
10981113
},
1099-
"execution_count": null,
1114+
"execution_count": 23,
11001115
"outputs": []
11011116
},
11021117
{
@@ -1136,7 +1151,7 @@
11361151
"metadata": {
11371152
"id": "9gD_alThQA3G"
11381153
},
1139-
"execution_count": null,
1154+
"execution_count": 24,
11401155
"outputs": []
11411156
},
11421157
{
@@ -1166,9 +1181,9 @@
11661181
"colab": {
11671182
"base_uri": "https://localhost:8080/"
11681183
},
1169-
"outputId": "02ca8f6b-a7ce-4626-9751-0f39ab0adf01"
1184+
"outputId": "a5f3ba79-fd9d-44b0-f868-502e7abaa826"
11701185
},
1171-
"execution_count": null,
1186+
"execution_count": 25,
11721187
"outputs": [
11731188
{
11741189
"output_type": "stream",
@@ -1200,9 +1215,9 @@
12001215
"colab": {
12011216
"base_uri": "https://localhost:8080/"
12021217
},
1203-
"outputId": "0184b7df-067d-4e7a-d14d-21b718d4e857"
1218+
"outputId": "049841d5-2d22-45d6-c461-617f9ca3ed49"
12041219
},
1205-
"execution_count": null,
1220+
"execution_count": 26,
12061221
"outputs": [
12071222
{
12081223
"output_type": "execute_result",
@@ -1212,7 +1227,7 @@
12121227
]
12131228
},
12141229
"metadata": {},
1215-
"execution_count": 93
1230+
"execution_count": 26
12161231
}
12171232
]
12181233
},
@@ -1234,7 +1249,7 @@
12341249
"metadata": {
12351250
"id": "aAhkyvJlWK1p"
12361251
},
1237-
"execution_count": null,
1252+
"execution_count": 27,
12381253
"outputs": []
12391254
}
12401255
]

0 commit comments

Comments
 (0)