HDBSCAN error stopping EnsembleTopics
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 113
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
The code from your homepage
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import CountVectorizer
from enstop import EnsembleTopics
news = fetch_20newsgroups(subset='all')
data = CountVectorizer().fit_transform(news.data)
model = EnsembleTopics(n_components=20).fit(data)
topics = model.components_
doc_vectors = model.embedding_
results in an error:
File hdbscan\\_hdbscan_tree.pyx:659, in hdbscan._hdbscan_tree.get_clusters()
File hdbscan\\_hdbscan_tree.pyx:733, in hdbscan._hdbscan_tree.get_clusters()
TypeError: 'numpy.float64' object cannot be interpreted as an integer
I have sklearn 1.3.0, Python 3.11.4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the homepage example and reproduce the failure from EnsembleTopics(n_components=20).fit(data) using the reported Python 3.11.4 and scikit-learn 1.3.0 versions. Trace the HDBSCAN get_clusters() error and verify that the example completes without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100