Skip to content

DOC Improve n_jobs docstrings for DBSCAN, HDBSCAN, and OPTICS#33500

Closed
floattheboat wants to merge 1 commit intoscikit-learn:mainfrom
floattheboat:improve-n-jobs-docs-cluster
Closed

DOC Improve n_jobs docstrings for DBSCAN, HDBSCAN, and OPTICS#33500
floattheboat wants to merge 1 commit intoscikit-learn:mainfrom
floattheboat:improve-n-jobs-docs-cluster

Conversation

@floattheboat
Copy link
Copy Markdown

Summary

  • DBSCAN: clarifies that n_jobs parallelizes the radius neighbor query across samples during fit, and has no effect when metric="precomputed"
  • HDBSCAN: explains the algorithm-dependent behavior — brute splits pairwise distance matrix into row slices, while kd_tree/ball_tree parallelize the kNN query across samples
  • OPTICS: clarifies that the kNN query for the reachability graph is parallelized across samples during fit
  • MeanShift: minor cleanup removing a duplicate Glossary reference (in both the class and function docstrings)

SpectralClustering is already well-documented and left unchanged.

Contributes to #14228.

Test plan

  • Verify rendered docstrings render correctly
  • Confirm no test regressions in sklearn/cluster/tests/

🤖 Generated with Claude Code

…-learn#14228)

Also remove duplicate Glossary reference in MeanShift n_jobs docstring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@virchan virchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@virchan virchan closed this Mar 26, 2026
@virchan virchan added spam spam PR and issues and removed Documentation module:cluster labels Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

spam spam PR and issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants