Skip to content

Commit

Permalink
Created using Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanths814 committed Jan 26, 2024
1 parent 1ebd6c9 commit b011afb
Showing 1 changed file with 50 additions and 38 deletions.
88 changes: 50 additions & 38 deletions Iris_Model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"metadata": {
"colab": {
"provenance": [],
"gpuType": "T4"
"gpuType": "T4",
"authorship_tag": "ABX9TyNPDlOVek0PxqSBLfI00t03",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
Expand All @@ -16,9 +18,19 @@
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/yashwanths814/Iris-Model/blob/main/Iris_Model.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"id": "718E9a9A6mRa"
},
Expand Down Expand Up @@ -47,9 +59,9 @@
"height": 206
},
"id": "A1r7ejsI6_B2",
"outputId": "a8f23e8a-fe17-4db3-c64d-9ab8a9779956"
"outputId": "b0cc4986-290a-43df-ddcd-05b66291cdaa"
},
"execution_count": 4,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand All @@ -64,7 +76,7 @@
],
"text/html": [
"\n",
" <div id=\"df-e75ab3d9-a81f-454a-950a-032d4878990f\" class=\"colab-df-container\">\n",
" <div id=\"df-c4e75986-f544-4769-886a-627acea8f4c3\" class=\"colab-df-container\">\n",
" <div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
Expand Down Expand Up @@ -137,7 +149,7 @@
" <div class=\"colab-df-buttons\">\n",
"\n",
" <div class=\"colab-df-container\">\n",
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-e75ab3d9-a81f-454a-950a-032d4878990f')\"\n",
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-c4e75986-f544-4769-886a-627acea8f4c3')\"\n",
" title=\"Convert this dataframe to an interactive table.\"\n",
" style=\"display:none;\">\n",
"\n",
Expand Down Expand Up @@ -189,12 +201,12 @@
"\n",
" <script>\n",
" const buttonEl =\n",
" document.querySelector('#df-e75ab3d9-a81f-454a-950a-032d4878990f button.colab-df-convert');\n",
" document.querySelector('#df-c4e75986-f544-4769-886a-627acea8f4c3 button.colab-df-convert');\n",
" buttonEl.style.display =\n",
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
"\n",
" async function convertToInteractive(key) {\n",
" const element = document.querySelector('#df-e75ab3d9-a81f-454a-950a-032d4878990f');\n",
" const element = document.querySelector('#df-c4e75986-f544-4769-886a-627acea8f4c3');\n",
" const dataTable =\n",
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
" [key], {});\n",
Expand All @@ -214,8 +226,8 @@
" </div>\n",
"\n",
"\n",
"<div id=\"df-5c94ad60-7584-4f64-8332-fe89bc6a0d32\">\n",
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-5c94ad60-7584-4f64-8332-fe89bc6a0d32')\"\n",
"<div id=\"df-9f989f7a-cfef-4168-a215-a538efd5288c\">\n",
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-9f989f7a-cfef-4168-a215-a538efd5288c')\"\n",
" title=\"Suggest charts\"\n",
" style=\"display:none;\">\n",
"\n",
Expand Down Expand Up @@ -334,7 +346,7 @@
" }\n",
" (() => {\n",
" let quickchartButtonEl =\n",
" document.querySelector('#df-5c94ad60-7584-4f64-8332-fe89bc6a0d32 button');\n",
" document.querySelector('#df-9f989f7a-cfef-4168-a215-a538efd5288c button');\n",
" quickchartButtonEl.style.display =\n",
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
" })();\n",
Expand All @@ -345,7 +357,7 @@
]
},
"metadata": {},
"execution_count": 4
"execution_count": 18
}
]
},
Expand All @@ -363,9 +375,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "af3e37eb-0135-4681-c689-ec854aab94e1"
"outputId": "466d6612-840e-4eb4-ee22-f75467212b22"
},
"execution_count": 5,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -568,7 +580,7 @@
"metadata": {
"id": "_lWBQ3-r72Cf"
},
"execution_count": 6,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -581,9 +593,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "55d9a0a6-bf85-4516-a738-3c71e2ef5139"
"outputId": "7d4d5dc3-d2c1-4f43-f9e6-b4b1416c396c"
},
"execution_count": 7,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand Down Expand Up @@ -712,7 +724,7 @@
]
},
"metadata": {},
"execution_count": 7
"execution_count": 21
}
]
},
Expand All @@ -726,7 +738,7 @@
"metadata": {
"id": "mWvmKpSn78Su"
},
"execution_count": 8,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -741,9 +753,9 @@
"base_uri": "https://localhost:8080/",
"height": 74
},
"outputId": "d2f174dd-d84e-495e-f9c8-669cb25a015b"
"outputId": "4e27902c-26bf-4489-941a-f5b528b1a343"
},
"execution_count": 9,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand All @@ -752,11 +764,11 @@
"LogisticRegression(random_state=42)"
],
"text/html": [
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LogisticRegression(random_state=42)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">LogisticRegression</label><div class=\"sk-toggleable__content\"><pre>LogisticRegression(random_state=42)</pre></div></div></div></div></div>"
"<style>#sk-container-id-2 {color: black;background-color: white;}#sk-container-id-2 pre{padding: 0;}#sk-container-id-2 div.sk-toggleable {background-color: white;}#sk-container-id-2 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-2 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-2 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-2 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-2 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-2 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-2 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-2 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-2 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-2 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-2 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-2 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-2 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-2 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-2 div.sk-item {position: relative;z-index: 1;}#sk-container-id-2 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-2 div.sk-item::before, #sk-container-id-2 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-2 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-2 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-2 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-2 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-2 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-2 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-2 div.sk-label-container {text-align: center;}#sk-container-id-2 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-2 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-2\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LogisticRegression(random_state=42)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-2\" type=\"checkbox\" checked><label for=\"sk-estimator-id-2\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">LogisticRegression</label><div class=\"sk-toggleable__content\"><pre>LogisticRegression(random_state=42)</pre></div></div></div></div></div>"
]
},
"metadata": {},
"execution_count": 9
"execution_count": 23
}
]
},
Expand All @@ -771,9 +783,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "69234797-a032-4c9b-898f-12f0db4bc19b"
"outputId": "3ba26d74-e8ef-4ac9-e717-39762861eed7"
},
"execution_count": 10,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand All @@ -791,7 +803,7 @@
]
},
"metadata": {},
"execution_count": 10
"execution_count": 24
}
]
},
Expand All @@ -806,9 +818,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "dcc98dbe-f484-4022-9233-4d56587bd50a"
"outputId": "04069a36-2a4d-41e0-c2e9-d81cc1939ca3"
},
"execution_count": 11,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand All @@ -818,7 +830,7 @@
]
},
"metadata": {},
"execution_count": 11
"execution_count": 25
}
]
},
Expand All @@ -834,9 +846,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "4d4dd6cd-c1a4-4af9-e6fc-4cb11c6ee398"
"outputId": "f7513a67-0103-4c0b-c7ae-4d960eebed23"
},
"execution_count": 12,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -869,9 +881,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "a8001013-52ac-48f6-b03b-070df40b70bd"
"outputId": "0a56a0ec-ea74-4302-9e23-cd8ad75f09c6"
},
"execution_count": 13,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand All @@ -881,7 +893,7 @@
]
},
"metadata": {},
"execution_count": 13
"execution_count": 27
}
]
},
Expand All @@ -893,7 +905,7 @@
"metadata": {
"id": "HDOak5E-8WlC"
},
"execution_count": 14,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -907,7 +919,7 @@
"metadata": {
"id": "Kx2RCQca8aL6"
},
"execution_count": 15,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -921,9 +933,9 @@
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "dacc5663-9313-48e3-8003-b48fcf960453"
"outputId": "3ea53bb3-91de-420c-d244-133508088c24"
},
"execution_count": 16,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
Expand Down

0 comments on commit b011afb

Please sign in to comment.