cannot import name 'OPTICS'
See original GitHub issueI want to perform clustering using OPTICS in sklearn and I started with the example, but I am getting an error that I cannot import OPTICS. Any suggestions. Here is the example
from sklearn.cluster import OPTICS
ImportError: cannot import name 'OPTICS'
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
ImportError in importing from sklearn: cannot import name ...
Worked for me after installing scipy.
Read more >sklearn.cluster.OPTICS — scikit-learn 1.2.0 documentation
This works for Scipy's metrics, but is less efficient than passing the metric name as a string. If metric is “precomputed”, X is...
Read more >Cannot import name 'delayed' from 'sklearn.utils.fixes'
The "ImportError: cannot import name 'delayed' from 'sklearn.utils.fixes'" occurs because the delayed package is not installed in the ...
Read more >ImportError cannot import name minimum spanning tree
I am trying to import sklearn module in jupyter notebook, but I am getting this below error. ImportError: cannot import name ...
Read more >Issue with sklearn import - General - Jupyter Community Forum
Code Issue: from sklearn import cross_validation Error: ImportError: cannot import name 'cross_validation' from 'sklearn' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OPTICS is still experimental and only available on master, and is not released yet. You should take extreme caution using it, and expect bugs and major changes in the API by the time it gets released.
We hope to have it out by v0.21.
That was a typo, @rth. Python 2 is not supported in versions from 0.21. I expect that 0.20.4 was our last python 2 release ever.