Skip to content

docs: note that min_samples can also change which topics appear - #2557

Open
provezano wants to merge 2 commits into
MaartenGr:masterfrom
provezano:docs-min-samples-sensitivity
Open

provezano wants to merge 2 commits into
MaartenGr:masterfrom
provezano:docs-min-samples-sensitivity

Conversation

@provezano

@provezano provezano commented Nov 9, 2026 •

Copy link
Copy Markdown

Hi Maarten,

This adds a short paragraph to the min_samples part of the parameter tuning guide. The guide says that min_samples is set to min_cluster_size by default and controls the number of outliers, which is right. It can also change which topics appear. HDBSCAN only selects clusters of at least min_cluster_size points, so after a small change of min_samples, or of min_cluster_size while min_samples follows it, a topic just above that size can shrink below it and fall into the outliers or merge with a neighbour. The paragraph says this and points to the FAQ's advice on setting a UMAP random_state, so that runs with different values use the same embeddings.

Related discussion: #582. Feel free to shorten it, or to close this if you'd rather keep the guide as it is.

Before submitting

  • This PR fixes a typo or improves the docs (if yes, ignore all other checks!).

@provezano provezano changed the title docs: note that small min_samples changes can drop or merge topics near min_cluster_size docs: mention that small min_samples changes can drop or merge topics Nov 9, 2026
@provezano provezano changed the title docs: mention that small min_samples changes can drop or merge topics docs: note that min_samples can also change which topics appear Nov 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant