This commit is contained in:
lda committed 2026-01-14 12:08:42 +07:00
1 parent 66c4d588be
commit 5f4dbe9bd2
2 files changed
+99 -32

No files matched your search

+68 -30
View File
@@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 106, "execution_count": 116,
"id": "e377bc9b", "id": "e377bc9b",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -20,7 +20,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 107, "execution_count": 117,
"id": "d7275d15", "id": "d7275d15",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -30,7 +30,7 @@
"WindowsPath('c:/Users/Admin/Documents/lecture ass shit/3/ml2/lw2')" "WindowsPath('c:/Users/Admin/Documents/lecture ass shit/3/ml2/lw2')"
] ]
}, },
"execution_count": 107, "execution_count": 117,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@@ -51,7 +51,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 108, "execution_count": 118,
"id": "4de18adb", "id": "4de18adb",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -78,7 +78,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 109, "execution_count": 119,
"id": "50b3eb52", "id": "50b3eb52",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -105,7 +105,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 110, "execution_count": 120,
"id": "a89a6974", "id": "a89a6974",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -121,7 +121,7 @@
" 0.3905976225423938,\n", " 0.3905976225423938,\n",
" 0.38566484346143776,\n", " 0.38566484346143776,\n",
" 0.3910649022379036],\n", " 0.3910649022379036],\n",
" [18066.00920712765,\n", " [18066.009207127645,\n",
" 13418.727667404704,\n", " 13418.727667404704,\n",
" 11157.455698492053,\n", " 11157.455698492053,\n",
" 9330.808564389003,\n", " 9330.808564389003,\n",
@@ -129,10 +129,10 @@
" 6764.331897239782,\n", " 6764.331897239782,\n",
" 5939.9031003732325,\n", " 5939.9031003732325,\n",
" 5315.323604570619,\n", " 5315.323604570619,\n",
" 4805.410264465899])" " 4805.410264465898])"
] ]
}, },
"execution_count": 110, "execution_count": 120,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@@ -143,7 +143,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 111, "execution_count": 121,
"id": "c70bfa21", "id": "c70bfa21",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -154,7 +154,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 112, "execution_count": 122,
"id": "926a255e", "id": "926a255e",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -179,7 +179,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 113, "execution_count": 123,
"id": "7b8c1750", "id": "7b8c1750",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -204,7 +204,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 114, "execution_count": 124,
"id": "acab8d95", "id": "acab8d95",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -237,7 +237,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 90, "execution_count": 125,
"id": "92b692bc", "id": "92b692bc",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -252,7 +252,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 91, "execution_count": 126,
"id": "e6bbfcb7", "id": "e6bbfcb7",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -277,7 +277,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 92, "execution_count": 127,
"id": "05d4bd31", "id": "05d4bd31",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -300,7 +300,7 @@
" 848656.9204411206])" " 848656.9204411206])"
] ]
}, },
"execution_count": 92, "execution_count": 127,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@@ -311,7 +311,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 93, "execution_count": 128,
"id": "da938557", "id": "da938557",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -336,7 +336,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 94, "execution_count": 129,
"id": "0070102e", "id": "0070102e",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -361,7 +361,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 95, "execution_count": 130,
"id": "c312a24a", "id": "c312a24a",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -380,7 +380,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 96, "execution_count": 131,
"id": "bc26af01", "id": "bc26af01",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -408,7 +408,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 97, "execution_count": 132,
"id": "a3e10a92", "id": "a3e10a92",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -444,7 +444,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 98, "execution_count": 133,
"id": "69a1249a", "id": "69a1249a",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -477,7 +477,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 99, "execution_count": 134,
"id": "f41491b4", "id": "f41491b4",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -501,7 +501,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 100, "execution_count": 135,
"id": "873caac5", "id": "873caac5",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -526,7 +526,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 101, "execution_count": 136,
"id": "6846b929", "id": "6846b929",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -561,7 +561,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 102, "execution_count": 137,
"id": "fc244f0c", "id": "fc244f0c",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -594,7 +594,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 103, "execution_count": 138,
"id": "813e9b68", "id": "813e9b68",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -607,7 +607,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 104, "execution_count": 139,
"id": "6aa93bec", "id": "6aa93bec",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -630,7 +630,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 105, "execution_count": 140,
"id": "1fb883f8", "id": "1fb883f8",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -655,6 +655,44 @@
"plt.legend()\n", "plt.legend()\n",
"plt.show()\n" "plt.show()\n"
] ]
},
{
"cell_type": "code",
"execution_count": 141,
"id": "a54ce8fb",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"([0.1447573886443752,\n",
" 0.1513815804645033,\n",
" 0.1622363759648628,\n",
" 0.10473845344821518,\n",
" 0.11854956392780605,\n",
" 0.11689825990588008],\n",
" [0.3885783888959868,\n",
" 0.43308922486937373,\n",
" 0.3730220026311381,\n",
" 0.38759443998496274,\n",
" 0.35733354404743983,\n",
" 0.36750626178240353],\n",
" [0.16609258945009867,\n",
" 0.13111313797495522,\n",
" 0.13898110095002836,\n",
" 0.12515895253959083,\n",
" 0.12109768667928446,\n",
" 0.10798315908348614])"
]
},
"execution_count": 141,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sil_orig, sil_pca, sil_sub"
]
} }
], ],
"metadata": { "metadata": {
+31 -2
View File
@@ -90,7 +90,7 @@ silhouettes, inertias
0.3905976225423938, 0.3905976225423938,
0.38566484346143776, 0.38566484346143776,
0.3910649022379036], 0.3910649022379036],
[18066.00920712765, [18066.009207127645,
13418.727667404704, 13418.727667404704,
11157.455698492053, 11157.455698492053,
9330.808564389003, 9330.808564389003,
@@ -98,7 +98,7 @@ silhouettes, inertias
6764.331897239782, 6764.331897239782,
5939.9031003732325, 5939.9031003732325,
5315.323604570619, 5315.323604570619,
4805.410264465899]) 4805.410264465898])
@@ -424,3 +424,32 @@ plt.show()
![png](lw2_files/lw2_35_0.png) ![png](lw2_files/lw2_35_0.png)
```python
sil_orig, sil_pca, sil_sub
```
([0.1447573886443752,
0.1513815804645033,
0.1622363759648628,
0.10473845344821518,
0.11854956392780605,
0.11689825990588008],
[0.3885783888959868,
0.43308922486937373,
0.3730220026311381,
0.38759443998496274,
0.35733354404743983,
0.36750626178240353],
[0.16609258945009867,
0.13111313797495522,
0.13898110095002836,
0.12515895253959083,
0.12109768667928446,
0.10798315908348614])