From 1087152c3f8e82cf4c2957a7fa6425ea80c4cfa2 Mon Sep 17 00:00:00 2001 From: Andrea Ovalle <74880762+ovalle15@users.noreply.github.com> Date: Fri, 10 Feb 2023 09:50:00 -0500 Subject: [PATCH] Ontology updates (instructions --> name) --- .../prediction_upload/text_predictions.ipynb | 107 ++++++++++-------- 1 file changed, 61 insertions(+), 46 deletions(-) diff --git a/examples/prediction_upload/text_predictions.ipynb b/examples/prediction_upload/text_predictions.ipynb index f9c3c36bc..9c21f26ad 100644 --- a/examples/prediction_upload/text_predictions.ipynb +++ b/examples/prediction_upload/text_predictions.ipynb @@ -88,10 +88,25 @@ "!pip install -q 'labelbox[data]'" ], "metadata": { - "id": "cm8xMaLbGb7v" + "id": "cm8xMaLbGb7v", + "outputId": "f82cdc12-a572-4d42-fe74-3f65376f82fb", + "colab": { + "base_uri": "https://localhost:8080/" + } }, - "execution_count": 165, - "outputs": [] + "execution_count": 1, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m187.7/187.7 KB\u001b[0m \u001b[31m6.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.8/7.8 MB\u001b[0m \u001b[31m28.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + " Building wheel for pygeotile (setup.py) ... \u001b[?25l\u001b[?25hdone\n" + ] + } + ] }, { "cell_type": "code", @@ -104,7 +119,7 @@ "metadata": { "id": "NIq-6M9kHKSs" }, - "execution_count": 166, + "execution_count": 2, "outputs": [] }, { @@ -126,7 +141,7 @@ "metadata": { "id": "z7ZLKLYLHP__" }, - "execution_count": 167, + "execution_count": 3, "outputs": [] }, { @@ -161,7 +176,7 @@ "metadata": { "id": "FJhCAqeR-cUJ" }, - "execution_count": 168, + "execution_count": 4, "outputs": [] }, { @@ -188,7 +203,7 @@ "metadata": { "id": "SOOR0zCBKef_" }, - "execution_count": 169, + "execution_count": 5, "outputs": [] }, { @@ -230,7 +245,7 @@ "metadata": { "id": "cXKGv0BeNXQi" }, - "execution_count": 170, + "execution_count": 6, "outputs": [] }, { @@ -271,7 +286,7 @@ "metadata": { "id": "vdwPTRkP6JIx" }, - "execution_count": 171, + "execution_count": 7, "outputs": [] }, { @@ -294,7 +309,7 @@ "metadata": { "id": "ie2Zni_d6MI8" }, - "execution_count": 172, + "execution_count": 8, "outputs": [] }, { @@ -323,24 +338,24 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "8c427e26-591a-4a90-edba-9d28dd686f3e" + "outputId": "9f63b64d-c38a-4b41-e4ba-36ef7a59a2ea" }, - "execution_count": 173, + "execution_count": 9, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "\n" ] } @@ -365,18 +380,18 @@ " classifications=[ # List of Classification objects\n", " lb.Classification(\n", " class_type=lb.Classification.Type.RADIO,\n", - " instructions=\"radio_question\", \n", + " name=\"radio_question\", \n", " options=[lb.Option(value=\"first_radio_answer\")]\n", " ),\n", " lb.Classification(\n", " class_type=lb.Classification.Type.RADIO,\n", - " instructions=\"nested_radio_question\", \n", + " name=\"nested_radio_question\", \n", " options=[\n", " lb.Option(value=\"first_radio_answer\",\n", " options=[\n", " lb.Classification(\n", " class_type=lb.Classification.Type.RADIO,\n", - " instructions=\"sub_radio_question\",\n", + " name=\"sub_radio_question\",\n", " options=[\n", " lb.Option(value=\"first_sub_radio_answer\")\n", " ]\n", @@ -387,7 +402,7 @@ " ),\n", " lb.Classification(\n", " class_type=lb.Classification.Type.CHECKLIST,\n", - " instructions=\"checklist_question\", \n", + " name=\"checklist_question\", \n", " options=[\n", " lb.Option(value=\"first_checklist_answer\"),\n", " lb.Option(value=\"second_checklist_answer\"),\n", @@ -396,17 +411,17 @@ " ), \n", " lb.Classification(\n", " class_type=lb.Classification.Type.TEXT,\n", - " instructions=\"free_text\"\n", + " name=\"free_text\"\n", " ),\n", " lb.Classification(\n", " class_type=lb.Classification.Type.CHECKLIST,\n", - " instructions=\"nested_checklist_question\",\n", + " name=\"nested_checklist_question\",\n", " options=[\n", " lb.Option(\"first_checklist_answer\",\n", " options=[\n", " lb.Classification(\n", " class_type=lb.Classification.Type.CHECKLIST,\n", - " instructions=\"sub_checklist_question\", \n", + " name=\"sub_checklist_question\", \n", " options=[lb.Option(\"first_sub_checklist_answer\")]\n", " )\n", " ]\n", @@ -425,7 +440,7 @@ "metadata": { "id": "Kt4XWWqgIiWk" }, - "execution_count": 174, + "execution_count": 10, "outputs": [] }, { @@ -449,7 +464,7 @@ "metadata": { "id": "8n-AvzdiOR6d" }, - "execution_count": 175, + "execution_count": 11, "outputs": [] }, { @@ -471,9 +486,9 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "b99b53c1-9296-460f-bed1-28a4f05079d8" + "outputId": "e8a1cf02-45c8-4383-9d36-5752d9b434ef" }, - "execution_count": 176, + "execution_count": 12, "outputs": [ { "output_type": "execute_result", @@ -483,7 +498,7 @@ ] }, "metadata": {}, - "execution_count": 176 + "execution_count": 12 } ] }, @@ -525,7 +540,7 @@ "metadata": { "id": "zv2OLTXKSGWv" }, - "execution_count": 177, + "execution_count": 13, "outputs": [] }, { @@ -558,7 +573,7 @@ "metadata": { "id": "F-Y7sSyAV3tn" }, - "execution_count": 178, + "execution_count": 14, "outputs": [] }, { @@ -587,9 +602,9 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "a62c87c5-8d66-47bc-dc82-8899bedf2d04" + "outputId": "2f733295-06d6-4725-994f-e429c01bead4" }, - "execution_count": 179, + "execution_count": 15, "outputs": [ { "output_type": "stream", @@ -633,12 +648,12 @@ ], "metadata": { "id": "jEtoDiDrPFvI", - "outputId": "51a8e2e5-27c9-4051-8176-7a37018d1852", + "outputId": "bd679c98-b151-4f61-ab82-88483b9f8f2b", "colab": { "base_uri": "https://localhost:8080/" } }, - "execution_count": 180, + "execution_count": 16, "outputs": [ { "output_type": "stream", @@ -672,22 +687,22 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "6708c469-4544-4a00-e866-8fd446944554", + "outputId": "fde12aaf-9ad1-4071-c3da-537a1867d72c", "pycharm": { "is_executing": true } }, - "execution_count": 181, + "execution_count": 17, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ - "" + "" ] }, "metadata": {}, - "execution_count": 181 + "execution_count": 17 } ] }, @@ -758,7 +773,7 @@ "metadata": { "id": "A8_HVvu9Uvfl" }, - "execution_count": 182, + "execution_count": 18, "outputs": [] }, { @@ -792,7 +807,7 @@ "metadata": { "id": "9gD_alThQA3G" }, - "execution_count": 183, + "execution_count": 19, "outputs": [] }, { @@ -822,9 +837,9 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "e78e544b-e6a3-42db-8a71-b0af8c3113c3" + "outputId": "5b73ee2f-1248-42bd-cdaf-4d685ca4cd1e" }, - "execution_count": 184, + "execution_count": 20, "outputs": [ { "output_type": "stream", @@ -856,9 +871,9 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "748982b6-7593-4232-c2cc-d30d8203a2dd" + "outputId": "46f40924-17ad-459a-86ea-b50fed73c692" }, - "execution_count": 185, + "execution_count": 21, "outputs": [ { "output_type": "execute_result", @@ -868,7 +883,7 @@ ] }, "metadata": {}, - "execution_count": 185 + "execution_count": 21 } ] }, @@ -890,7 +905,7 @@ "metadata": { "id": "aAhkyvJlWK1p" }, - "execution_count": 186, + "execution_count": 22, "outputs": [] } ]