erdogant/clusteval

TypeError: plot() got an unexpected keyword argument 'width'

ydennisy opened this issue · 2 comments

[HDBSCAN] Estimated number of clusters: 10
[HDBSCAN] Silhouette Coefficient: 0.780
[clusteval] >Fin.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-35-8b8378daba75> in <module>
      8 ce = clusteval(method='hdbscan')
      9 ce.fit(X)
---> 10 ce.plot()
     11 #ce.scatter(X)

/usr/local/lib/python3.7/site-packages/clusteval/clusteval.py in plot(self, figsize)
    151         elif self.method=='hdbscan':
    152             import clusteval.hdbscan as hdbscan
--> 153             hdbscan.plot(self.results, width=figsize[0], height=figsize[1])
    154 
    155     # Plot

TypeError: plot() got an unexpected keyword argument 'width'

Dear ydennisy, thank you for using clusteval and pointing to this issue.
I fixed the issue. Please update to the latest version with:

pip install -U clusteval

Check the version. Should be 1.0.1

import clusteval
print(clusteval.__version__)