mirror of
https://github.com/deepseek-ai/DeepSeek-Coder.git
synced 2025-02-23 06:09:07 -05:00
Created using Colab
This commit is contained in:
parent
4ef0af1a7f
commit
3949954973
@ -92,7 +92,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "_x9QzbrMOl0l",
|
||||
"outputId": "9750543d-bfea-4451-a95c-4a6cfcc2e0ba"
|
||||
"outputId": "ab81e859-9cc0-4483-c174-5012b2b47ca4"
|
||||
},
|
||||
"source": [
|
||||
"print(dataset.data)\n",
|
||||
@ -283,7 +283,7 @@
|
||||
"height": 424
|
||||
},
|
||||
"id": "EG1_3L0hOoq0",
|
||||
"outputId": "464b4950-8a29-4131-8500-6bdacd714e32"
|
||||
"outputId": "4497898b-6264-4286-abb3-6394ec005754"
|
||||
},
|
||||
"source": [
|
||||
"X = pd.DataFrame(dataset.data, columns=dataset.feature_names)\n",
|
||||
@ -312,7 +312,7 @@
|
||||
],
|
||||
"text/html": [
|
||||
"\n",
|
||||
" <div id=\"df-389f57ea-0bd7-462a-9a96-b6a7dee9a497\" class=\"colab-df-container\">\n",
|
||||
" <div id=\"df-e2b913d5-fa21-4bb1-8f04-5952f668df8e\" class=\"colab-df-container\">\n",
|
||||
" <div>\n",
|
||||
"<style scoped>\n",
|
||||
" .dataframe tbody tr th:only-of-type {\n",
|
||||
@ -422,7 +422,7 @@
|
||||
" <div class=\"colab-df-buttons\">\n",
|
||||
"\n",
|
||||
" <div class=\"colab-df-container\">\n",
|
||||
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-389f57ea-0bd7-462a-9a96-b6a7dee9a497')\"\n",
|
||||
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-e2b913d5-fa21-4bb1-8f04-5952f668df8e')\"\n",
|
||||
" title=\"Convert this dataframe to an interactive table.\"\n",
|
||||
" style=\"display:none;\">\n",
|
||||
"\n",
|
||||
@ -474,12 +474,12 @@
|
||||
"\n",
|
||||
" <script>\n",
|
||||
" const buttonEl =\n",
|
||||
" document.querySelector('#df-389f57ea-0bd7-462a-9a96-b6a7dee9a497 button.colab-df-convert');\n",
|
||||
" document.querySelector('#df-e2b913d5-fa21-4bb1-8f04-5952f668df8e 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-389f57ea-0bd7-462a-9a96-b6a7dee9a497');\n",
|
||||
" const element = document.querySelector('#df-e2b913d5-fa21-4bb1-8f04-5952f668df8e');\n",
|
||||
" const dataTable =\n",
|
||||
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
||||
" [key], {});\n",
|
||||
@ -499,8 +499,8 @@
|
||||
" </div>\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"<div id=\"df-30a8233c-6cf9-497b-a5cb-cb33cb614e4c\">\n",
|
||||
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-30a8233c-6cf9-497b-a5cb-cb33cb614e4c')\"\n",
|
||||
"<div id=\"df-3fa5a8c8-0d89-4e94-9eb6-a6f83fb4b61a\">\n",
|
||||
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-3fa5a8c8-0d89-4e94-9eb6-a6f83fb4b61a')\"\n",
|
||||
" title=\"Suggest charts\"\n",
|
||||
" style=\"display:none;\">\n",
|
||||
"\n",
|
||||
@ -619,14 +619,14 @@
|
||||
" }\n",
|
||||
" (() => {\n",
|
||||
" let quickchartButtonEl =\n",
|
||||
" document.querySelector('#df-30a8233c-6cf9-497b-a5cb-cb33cb614e4c button');\n",
|
||||
" document.querySelector('#df-3fa5a8c8-0d89-4e94-9eb6-a6f83fb4b61a button');\n",
|
||||
" quickchartButtonEl.style.display =\n",
|
||||
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
||||
" })();\n",
|
||||
" </script>\n",
|
||||
"</div>\n",
|
||||
"\n",
|
||||
" <div id=\"id_4f5a864a-1903-4cf2-963b-999ead609f73\">\n",
|
||||
" <div id=\"id_cd5c8bd3-0029-41c9-854f-eed3f438d4f0\">\n",
|
||||
" <style>\n",
|
||||
" .colab-df-generate {\n",
|
||||
" background-color: #E8F0FE;\n",
|
||||
@ -670,7 +670,7 @@
|
||||
" <script>\n",
|
||||
" (() => {\n",
|
||||
" const buttonEl =\n",
|
||||
" document.querySelector('#id_4f5a864a-1903-4cf2-963b-999ead609f73 button.colab-df-generate');\n",
|
||||
" document.querySelector('#id_cd5c8bd3-0029-41c9-854f-eed3f438d4f0 button.colab-df-generate');\n",
|
||||
" buttonEl.style.display =\n",
|
||||
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
||||
"\n",
|
||||
@ -702,7 +702,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "fVIBC6zbPmD_",
|
||||
"outputId": "729cc236-51a5-4704-8002-a5326bc1d1ab"
|
||||
"outputId": "1a834214-4d26-4413-da1f-2a5a9a45b115"
|
||||
},
|
||||
"source": [
|
||||
"Y = dataset.target\n",
|
||||
@ -744,7 +744,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "WsXx-qmhPzSV",
|
||||
"outputId": "78fe0df9-ffdb-4fd2-9d96-52b8d2ba36af"
|
||||
"outputId": "3234893f-95d4-477f-fa50-86e38ad8e391"
|
||||
},
|
||||
"source": [
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
@ -781,7 +781,7 @@
|
||||
"height": 581
|
||||
},
|
||||
"id": "MLko_TEoSOVY",
|
||||
"outputId": "e9e13eb1-08fa-494c-f75d-0d9321bae504"
|
||||
"outputId": "932213ba-06aa-49c7-dbba-2ea593edf2d4"
|
||||
},
|
||||
"source": [
|
||||
"accuracy = []\n",
|
||||
@ -844,7 +844,7 @@
|
||||
"height": 80
|
||||
},
|
||||
"id": "_1iHKy-0QHm6",
|
||||
"outputId": "8a7a3030-1d60-4018-f225-5c2e65fdbe9a"
|
||||
"outputId": "63f5d1c9-bef7-4778-9a1f-8f2170a90770"
|
||||
},
|
||||
"source": [
|
||||
"from sklearn.tree import DecisionTreeClassifier\n",
|
||||
@ -1299,7 +1299,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "H9IXzjDeXFfv",
|
||||
"outputId": "8600174d-43a0-49fd-d3fd-3b312e858210"
|
||||
"outputId": "0b2faac8-d1d8-4326-eed2-adca7901bbf1"
|
||||
},
|
||||
"source": [
|
||||
"y_pred = model.predict(X_test)\n",
|
||||
@ -1369,7 +1369,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "z6zi5kA4XjXx",
|
||||
"outputId": "0a1dde70-cc96-4e28-a503-64f5e5272ba7"
|
||||
"outputId": "93e85e20-69e0-4772-deb5-2e6092cb6940"
|
||||
},
|
||||
"source": [
|
||||
"from sklearn.metrics import accuracy_score\n",
|
||||
|
Loading…
Reference in New Issue
Block a user