Skip to content

Commit ca502aa

Browse files
authored
Merge pull request #904 from Labelbox/ovalle15-patch-14
Ontology updates (instructions --> name)
2 parents 8b4498c + 6e9de6a commit ca502aa

File tree

1 file changed

+62
-72
lines changed

1 file changed

+62
-72
lines changed

examples/prediction_upload/geospatial_predictions.ipynb

Lines changed: 62 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@
9494
"colab": {
9595
"base_uri": "https://localhost:8080/"
9696
},
97-
"outputId": "213df0ab-7b5c-4915-e814-688f17646de6"
97+
"outputId": "fe6d4db9-dd36-473b-8c13-f4cbecfc6007"
9898
},
99-
"execution_count": 2,
99+
"execution_count": 1,
100100
"outputs": [
101101
{
102102
"output_type": "stream",
103103
"name": "stdout",
104104
"text": [
105-
"\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/185.5 KB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m185.5/185.5 KB\u001b[0m \u001b[31m14.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
105+
"\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/187.7 KB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[91m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[90m╺\u001b[0m \u001b[32m184.3/187.7 KB\u001b[0m \u001b[31m8.4 MB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m187.7/187.7 KB\u001b[0m \u001b[31m4.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
106106
"\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
107-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m60.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
107+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m19.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
108108
"\u001b[?25h Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
109109
]
110110
}
@@ -131,7 +131,7 @@
131131
"metadata": {
132132
"id": "NIq-6M9kHKSs"
133133
},
134-
"execution_count": 26,
134+
"execution_count": 2,
135135
"outputs": []
136136
},
137137
{
@@ -153,7 +153,7 @@
153153
"metadata": {
154154
"id": "z7ZLKLYLHP__"
155155
},
156-
"execution_count": 4,
156+
"execution_count": 3,
157157
"outputs": []
158158
},
159159
{
@@ -191,7 +191,7 @@
191191
"metadata": {
192192
"id": "3mQh-yQ2TLmd"
193193
},
194-
"execution_count": 21,
194+
"execution_count": 4,
195195
"outputs": []
196196
},
197197
{
@@ -596,24 +596,24 @@
596596
"colab": {
597597
"base_uri": "https://localhost:8080/"
598598
},
599-
"outputId": "29abe6b9-b699-4f47-8dc1-0702df392fee"
599+
"outputId": "967c61f5-6b3f-4be8-8f44-d5e0a685384e"
600600
},
601-
"execution_count": 14,
601+
"execution_count": 12,
602602
"outputs": [
603603
{
604604
"output_type": "stream",
605605
"name": "stdout",
606606
"text": [
607607
"<DataRow {\n",
608-
" \"created_at\": \"2023-02-02 16:27:35+00:00\",\n",
608+
" \"created_at\": \"2023-02-10 17:02:08+00:00\",\n",
609609
" \"external_id\": null,\n",
610-
" \"global_key\": \"ce3b4932-259e-45c1-9f77-9be31b82babc\",\n",
610+
" \"global_key\": \"aea925b8-7871-4fe5-90a7-442de05feca4\",\n",
611611
" \"media_attributes\": {},\n",
612612
" \"metadata\": [],\n",
613613
" \"metadata_fields\": [],\n",
614614
" \"row_data\": \"{\\\"tileLayerUrl\\\":\\\"https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw\\\",\\\"bounds\\\":[[-122.31764674186705,37.87276155898985],[-122.31635199317932,37.87398109727749]],\\\"minZoom\\\":17,\\\"maxZoom\\\":23,\\\"maxNativeZoom\\\":null,\\\"epsg\\\":\\\"EPSG4326\\\",\\\"tileSize\\\":256,\\\"alternativeLayers\\\":[],\\\"version\\\":2}\",\n",
615-
" \"uid\": \"cldnb9fqj02rz07284krw8s8e\",\n",
616-
" \"updated_at\": \"2023-02-02 16:27:35+00:00\"\n",
615+
" \"uid\": \"cldys0pna00u4070w1gnq5atn\",\n",
616+
" \"updated_at\": \"2023-02-10 17:02:08+00:00\"\n",
617617
"}>\n"
618618
]
619619
}
@@ -645,7 +645,7 @@
645645
" classifications=[\n",
646646
" lb.Classification(\n",
647647
" class_type=lb.Classification.Type.CHECKLIST,\n",
648-
" instructions=\"checklist_class_name\",\n",
648+
" name=\"checklist_class_name\",\n",
649649
" options=[\n",
650650
" lb.Option(value=\"first_checklist_answer\")\n",
651651
" ]\n",
@@ -658,15 +658,15 @@
658658
" classifications=[\n",
659659
" lb.Classification(\n",
660660
" class_type=lb.Classification.Type.TEXT,\n",
661-
" instructions=\"free_text_geo\"\n",
661+
" name=\"free_text_geo\"\n",
662662
" ),\n",
663663
" ]\n",
664664
" ) \n",
665665
" ],\n",
666666
" classifications = [\n",
667667
" lb.Classification(\n",
668668
" class_type=lb.Classification.Type.CHECKLIST, \n",
669-
" instructions=\"checklist_question_geo\",\n",
669+
" name=\"checklist_question_geo\",\n",
670670
" options=[\n",
671671
" lb.Option(value=\"first_checklist_answer\"),\n",
672672
" lb.Option(value=\"second_checklist_answer\"), \n",
@@ -675,7 +675,7 @@
675675
" ), \n",
676676
" lb.Classification(\n",
677677
" class_type=lb.Classification.Type.RADIO, \n",
678-
" instructions=\"radio_question_geo\",\n",
678+
" name=\"radio_question_geo\",\n",
679679
" options=[\n",
680680
" lb.Option(value=\"first_radio_answer\")\n",
681681
" ]\n",
@@ -689,7 +689,7 @@
689689
"metadata": {
690690
"id": "Kt4XWWqgIiWk"
691691
},
692-
"execution_count": 16,
692+
"execution_count": 13,
693693
"outputs": []
694694
},
695695
{
@@ -713,7 +713,7 @@
713713
"metadata": {
714714
"id": "8n-AvzdiOR6d"
715715
},
716-
"execution_count": 17,
716+
"execution_count": 14,
717717
"outputs": []
718718
},
719719
{
@@ -735,9 +735,9 @@
735735
"colab": {
736736
"base_uri": "https://localhost:8080/"
737737
},
738-
"outputId": "6a1f9ed0-9f77-4ceb-f463-fa9e4b34f6ba"
738+
"outputId": "66437eb9-0eaa-47d5-8cf5-43066073e953"
739739
},
740-
"execution_count": 18,
740+
"execution_count": 15,
741741
"outputs": [
742742
{
743743
"output_type": "execute_result",
@@ -747,7 +747,7 @@
747747
]
748748
},
749749
"metadata": {},
750-
"execution_count": 18
750+
"execution_count": 15
751751
}
752752
]
753753
},
@@ -832,9 +832,9 @@
832832
"base_uri": "https://localhost:8080/"
833833
},
834834
"id": "dr1dEPzM_tHW",
835-
"outputId": "e367b87f-f8cb-4f2f-f74e-5df5aaf60efa"
835+
"outputId": "ff425438-526e-4eb5-890c-dd5e646a5b3d"
836836
},
837-
"execution_count": 34,
837+
"execution_count": 16,
838838
"outputs": [
839839
{
840840
"output_type": "stream",
@@ -880,40 +880,40 @@
880880
"colab": {
881881
"base_uri": "https://localhost:8080/"
882882
},
883-
"outputId": "a3da2fa9-3611-436d-91f2-b26dbffb133d"
883+
"outputId": "7847867d-7552-49fa-ce5e-fd5fad4d052c"
884884
},
885-
"execution_count": 24,
885+
"execution_count": 17,
886886
"outputs": [
887887
{
888888
"output_type": "execute_result",
889889
"data": {
890890
"text/plain": [
891891
"[{'confidence': 0.5,\n",
892-
" 'uuid': '9fcc2949-4636-43de-8574-12088b71b480',\n",
893-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
892+
" 'uuid': 'b35f0da1-e816-402d-a009-b0f8c6aace5e',\n",
893+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
894894
" 'name': 'point_geo',\n",
895895
" 'classifications': [],\n",
896896
" 'point': {'x': -122.31741025134123, 'y': 37.87355669249922}},\n",
897897
" {'confidence': 0.5,\n",
898-
" 'uuid': 'ddf8a5c9-c01e-4236-840a-c2c699b5b51f',\n",
899-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
898+
" 'uuid': '9a9328e5-27bf-47f1-a17b-781eb01779c9',\n",
899+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
900900
" 'name': 'polyline_geo',\n",
901901
" 'classifications': [],\n",
902902
" 'line': [{'x': -122.31757789012927, 'y': 37.87396317833991},\n",
903903
" {'x': -122.31639782443663, 'y': 37.87396741226917},\n",
904904
" {'x': -122.31638977853417, 'y': 37.87277872707839}]},\n",
905905
" {'confidence': 0.5,\n",
906-
" 'uuid': 'b0a101bd-e376-4c27-87cd-24460ae32c13',\n",
907-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
906+
" 'uuid': '319d2bbf-7a68-436c-969b-db56e30e8f90',\n",
907+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
908908
" 'name': 'polygon_geo',\n",
909909
" 'classifications': [],\n",
910910
" 'polygon': [{'x': -122.31691812612837, 'y': 37.873289980495024},\n",
911911
" {'x': -122.31710184090099, 'y': 37.87304335144298},\n",
912912
" {'x': -122.31680146054286, 'y': 37.87303594197371},\n",
913913
" {'x': -122.31691812612837, 'y': 37.873289980495024}]},\n",
914914
" {'confidence': 0.5,\n",
915-
" 'uuid': '5f79cb0d-b48b-4f2f-9532-72db6805fa1e',\n",
916-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
915+
" 'uuid': 'dc36bbc7-3038-459e-a0e0-a42c2565f2b9',\n",
916+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
917917
" 'name': 'bbox_geo',\n",
918918
" 'classifications': [],\n",
919919
" 'bbox': {'top': 37.873713376083884,\n",
@@ -922,36 +922,36 @@
922922
" 'width': 0.0006141705536464315}},\n",
923923
" {'name': 'radio_question_geo',\n",
924924
" 'answer': {'name': 'first_radio_answer'},\n",
925-
" 'uuid': '912917fa-5c99-4c3b-981e-1825155ff8db',\n",
926-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'}},\n",
925+
" 'uuid': 'a6c713dd-841e-4412-a74c-c2bac1c08c0f',\n",
926+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'}},\n",
927927
" {'confidence': 0.5,\n",
928-
" 'uuid': '553377cb-9347-45ca-b8b9-c6ddcd145a0a',\n",
929-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
928+
" 'uuid': 'af41b5a1-1720-4a88-8636-8e5a6cc406e8',\n",
929+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
930930
" 'name': 'bbox_checklist_geo',\n",
931931
" 'classifications': [{'name': 'checklist_class_name',\n",
932932
" 'answer': [{'confidence': 0.5, 'name': 'first_checklist_answer'}]}],\n",
933933
" 'bbox': {'top': 37.87340218056304,\n",
934934
" 'left': -122.31711256877092,\n",
935935
" 'height': 0.00020534685175022105,\n",
936936
" 'width': 0.0004572754559006853}},\n",
937-
" {'uuid': '67f9337f-61dd-4488-bbc2-fb45b6a85cff',\n",
938-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
937+
" {'uuid': '0d07a70a-d542-4644-808e-d69384a3e0e1',\n",
938+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
939939
" 'name': 'bbox_text_geo',\n",
940940
" 'classifications': [{'name': 'free_text_geo', 'answer': 'sample text'}],\n",
941941
" 'bbox': {'top': 37.87318201423049,\n",
942942
" 'left': -122.31750814315438,\n",
943943
" 'height': 0.00019791053033202388,\n",
944944
" 'width': 0.00040764323713915473}},\n",
945945
" {'name': 'checklist_question_geo',\n",
946-
" 'uuid': 'dfab5e8a-a290-4809-a87d-9b4288ddb7cd',\n",
947-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
946+
" 'uuid': '6842c2b3-54ee-44a7-b9e8-9e7c6537ef90',\n",
947+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
948948
" 'answer': [{'confidence': 0.5, 'name': 'first_checklist_answer'},\n",
949949
" {'confidence': 0.5, 'name': 'second_checklist_answer'},\n",
950950
" {'confidence': 0.5, 'name': 'third_checklist_answer'}]},\n",
951951
" {'confidence': 0.5,\n",
952-
" 'uuid': 'ba93e801-b49c-45ac-bd94-df2f8d94cb1d',\n",
953-
" 'dataRow': {'id': 'cldnb9fqj02rz07284krw8s8e'},\n",
954-
" 'name': 'polygon_geo',\n",
952+
" 'uuid': 'a9c9260e-5b50-4fad-95c5-3f0ab67a1d42',\n",
953+
" 'dataRow': {'id': 'cldys0pna00u4070w1gnq5atn'},\n",
954+
" 'name': 'polygon_geo_2',\n",
955955
" 'classifications': [],\n",
956956
" 'polygon': [{'x': -122.31703039689702, 'y': 37.87397804081582},\n",
957957
" {'x': -122.31702351036107, 'y': 37.87393525033866},\n",
@@ -985,7 +985,7 @@
985985
]
986986
},
987987
"metadata": {},
988-
"execution_count": 24
988+
"execution_count": 17
989989
}
990990
]
991991
},
@@ -1022,7 +1022,7 @@
10221022
"metadata": {
10231023
"id": "mwu3iXn-oofV"
10241024
},
1025-
"execution_count": 26,
1025+
"execution_count": 18,
10261026
"outputs": []
10271027
},
10281028
{
@@ -1050,9 +1050,9 @@
10501050
"colab": {
10511051
"base_uri": "https://localhost:8080/"
10521052
},
1053-
"outputId": "90720cd6-4fa0-4d3b-c36d-14f3b3e1c072"
1053+
"outputId": "33721051-ac19-4d86-bd9c-08a22f8ec2bc"
10541054
},
1055-
"execution_count": 25,
1055+
"execution_count": 19,
10561056
"outputs": [
10571057
{
10581058
"output_type": "stream",
@@ -1097,7 +1097,7 @@
10971097
"metadata": {
10981098
"id": "jEtoDiDrPFvI"
10991099
},
1100-
"execution_count": 27,
1100+
"execution_count": 20,
11011101
"outputs": []
11021102
},
11031103
{
@@ -1123,19 +1123,19 @@
11231123
"colab": {
11241124
"base_uri": "https://localhost:8080/"
11251125
},
1126-
"outputId": "fee3c579-b151-4b29-d016-244ac976a072"
1126+
"outputId": "f20d7e5d-c33d-44da-95b2-8a4215fc2a1a"
11271127
},
1128-
"execution_count": 28,
1128+
"execution_count": 21,
11291129
"outputs": [
11301130
{
11311131
"output_type": "execute_result",
11321132
"data": {
11331133
"text/plain": [
1134-
"<Batch ID: a7d5b7d0-a317-11ed-aaa0-3f3c283cd5e8>"
1134+
"<Batch ID: b446b570-a964-11ed-937c-6163ee666b24>"
11351135
]
11361136
},
11371137
"metadata": {},
1138-
"execution_count": 28
1138+
"execution_count": 21
11391139
}
11401140
]
11411141
},
@@ -1406,7 +1406,7 @@
14061406
"metadata": {
14071407
"id": "Xykw7ZACqlRe"
14081408
},
1409-
"execution_count": 30,
1409+
"execution_count": 22,
14101410
"outputs": []
14111411
},
14121412
{
@@ -1443,7 +1443,7 @@
14431443
"metadata": {
14441444
"id": "9gD_alThQA3G"
14451445
},
1446-
"execution_count": 31,
1446+
"execution_count": 23,
14471447
"outputs": []
14481448
},
14491449
{
@@ -1473,20 +1473,10 @@
14731473
"colab": {
14741474
"base_uri": "https://localhost:8080/"
14751475
},
1476-
"outputId": "6e7dfa65-4e39-4bba-fbe9-762f4e138397"
1476+
"outputId": "d8b50873-22e0-4d9a-f05e-9fb8bba604e7"
14771477
},
1478-
"execution_count": 32,
1478+
"execution_count": 24,
14791479
"outputs": [
1480-
{
1481-
"output_type": "stream",
1482-
"name": "stderr",
1483-
"text": [
1484-
"WARNING:labelbox.schema.annotation_import:\n",
1485-
" Confidence scores are not supported in Label Import.\n",
1486-
" Corresponding confidence score values will be ignored.\n",
1487-
" \n"
1488-
]
1489-
},
14901480
{
14911481
"output_type": "stream",
14921482
"name": "stdout",
@@ -1517,9 +1507,9 @@
15171507
"colab": {
15181508
"base_uri": "https://localhost:8080/"
15191509
},
1520-
"outputId": "dcff45fd-7af5-4b24-87f9-5fe71ddc4cc7"
1510+
"outputId": "3cc28466-881b-42ee-f6b2-37139ec2c1fb"
15211511
},
1522-
"execution_count": 33,
1512+
"execution_count": 25,
15231513
"outputs": [
15241514
{
15251515
"output_type": "execute_result",
@@ -1529,7 +1519,7 @@
15291519
]
15301520
},
15311521
"metadata": {},
1532-
"execution_count": 33
1522+
"execution_count": 25
15331523
}
15341524
]
15351525
},
@@ -1552,7 +1542,7 @@
15521542
"metadata": {
15531543
"id": "aAhkyvJlWK1p"
15541544
},
1555-
"execution_count": null,
1545+
"execution_count": 26,
15561546
"outputs": []
15571547
}
15581548
]

0 commit comments

Comments
 (0)