Skip to content

Commit 1c2b7dc

Browse files
committed
Pushing the docs to dev/ for branch: main, commit e24c13ca756a490b0044326c82cb6ecaeb0aa750
1 parent 73b4e24 commit 1c2b7dc

File tree

1,317 files changed

+5900
-5818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,317 files changed

+5900
-5818
lines changed

dev/.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 5744e0ab801bd7d341c57909164479c2
3+
config: 2150ee48d6d48ae5340fd1f0d8a787fb
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file not shown.

dev/_downloads/ddc1f7dc483de25e01897025606d794f/plot_hdbscan.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def plot(X, labels, probabilities=None, parameters=None, ground_truth=False, ax=
8484
# rescaled versions of the dataset.
8585
fig, axes = plt.subplots(3, 1, figsize=(10, 12))
8686
dbs = DBSCAN(eps=0.3)
87-
for idx, scale in enumerate((1, 0.5, 3)):
87+
for idx, scale in enumerate([1, 0.5, 3]):
8888
dbs.fit(X * scale)
8989
plot(X * scale, dbs.labels_, parameters={"scale": scale, "eps": 0.3}, ax=axes[idx])
9090

@@ -105,9 +105,15 @@ def plot(X, labels, probabilities=None, parameters=None, ground_truth=False, ax=
105105
# One immediate advantage is that HDBSCAN is scale-invariant.
106106
fig, axes = plt.subplots(3, 1, figsize=(10, 12))
107107
hdb = HDBSCAN()
108-
for idx, scale in enumerate((1, 0.5, 3)):
109-
hdb.fit(X)
110-
plot(X, hdb.labels_, hdb.probabilities_, ax=axes[idx], parameters={"scale": scale})
108+
for idx, scale in enumerate([1, 0.5, 3]):
109+
hdb.fit(X * scale)
110+
plot(
111+
X * scale,
112+
hdb.labels_,
113+
hdb.probabilities_,
114+
ax=axes[idx],
115+
parameters={"scale": scale},
116+
)
111117
# %%
112118
# Multi-Scale Clustering
113119
# ----------------------

0 commit comments

Comments
 (0)