Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clustering using DBSCAN #52

Open
marvinseifert opened this issue Feb 5, 2021 · 1 comment
Open

clustering using DBSCAN #52

marvinseifert opened this issue Feb 5, 2021 · 1 comment

Comments

@marvinseifert
Copy link
Collaborator

Just tried to run the clustering with the DBSCAN algorithm. However, I get the following error:

Clustering...
Using 248746 out of 248746 spikes...

TypeError Traceback (most recent call last)
in
----> 1 C.CombinedClustering(alpha=0.4, clustering_algorithm=DBSCAN,cluster_subset=nr_spikes,min_samples=5, eps=0.2, n_jobs=-1)

~\Anaconda3\envs\spikesorting_20\lib\site-packages\herdingspikes\hs2.py in CombinedClustering(self, alpha, clustering_algorithm, cluster_subset, **kwargs)
484 )
485 )
--> 486 clusterer.fit(fourvec[inds])
487 self.NClusters = len(np.unique(clusterer.labels_))
488 print("Number of estimated units:", self.NClusters)

TypeError: fit() missing 1 required positional argument: 'X'

@mhhennig
Copy link
Owner

mhhennig commented Feb 7, 2021

Thanks, I will have a look...
I'm working on some API changes, by the way. I will let you know!

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

No branches or pull requests

2 participants