Skip to content

Commit 16e5295

Browse files
committed
.
1 parent eb54333 commit 16e5295

File tree

2 files changed

+128
-29
lines changed

2 files changed

+128
-29
lines changed

04. Density Based Clustering.ipynb

+4-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"cell_type": "code",
21-
"execution_count": 54,
21+
"execution_count": 67,
2222
"metadata": {},
2323
"outputs": [],
2424
"source": [
@@ -32,7 +32,7 @@
3232
},
3333
{
3434
"cell_type": "code",
35-
"execution_count": 55,
35+
"execution_count": 68,
3636
"metadata": {},
3737
"outputs": [],
3838
"source": [
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"cell_type": "code",
44-
"execution_count": 61,
44+
"execution_count": 71,
4545
"metadata": {},
4646
"outputs": [
4747
{
@@ -76,15 +76,13 @@
7676
"X = StandardScaler().fit_transform(X)\n",
7777
"\n",
7878
"db = DBSCAN(eps=0.5, min_samples=15).fit(X)\n",
79-
"core_samples_mask = np.zeros_like(db.labels_, dtype=bool)\n",
80-
"core_samples_mask[db.core_sample_indices_] = True\n",
8179
"labels = db.labels_\n",
8280
"print(labels)"
8381
]
8482
},
8583
{
8684
"cell_type": "code",
87-
"execution_count": 65,
85+
"execution_count": 70,
8886
"metadata": {},
8987
"outputs": [
9088
{

0 commit comments

Comments
 (0)