mariaderrico / DPA

The DPA package is the scikit-learn compatible implementation of the Density Peaks Advanced clustering algorithm. The algorithm provides robust and visual information about the clusters, their statistical reliability and their hierarchical organization.
BSD 3-Clause "New" or "Revised" License
27 stars 9 forks source link

AttributeError: module 'Pipeline._PAk' has no attribute 'get_densities' #6

Closed AuturoWyatt closed 2 years ago

AuturoWyatt commented 2 years ago

Hi, Many thanks for making this clustering package available! I try to run that but I meet the error:

AttributeError Traceback (most recent call last)

in 1 start=time.time() ----> 2 est.fit(data_F1) 3 end=time.time() 4 print(end-start) ~\DPA_n\src\Pipeline\DPA.py in fit(self, X, y) 398 dim_algo=self.dim_algo, blockAn=self.blockAn, 399 block_ratio=self.block_ratio, --> 400 frac=self.frac, dim=self.dim_, n_jobs=self.n_jobs).fit(X) 401 self.nn_distances_ = PAk.distances_ 402 self.nn_indices_ = PAk.indices_ ~\DPA_n\src\Pipeline\PAk.py in fit(self, X, y) 280 k_max=self.k_max_, 281 D_thr=self.D_thr, --> 282 dim=self.dim_) 283 self.is_fitted_ = True 284 ~\DPA_n\src\Pipeline\PAk.py in _PointAdaptive_kNN(distances, indices, k_max, D_thr, dim) 63 64 # The adaptive k-Nearest Neighbor density estimator ---> 65 k_hat, dc, densities, err_densities = _PAk.get_densities(dim, distances, k_max, D_thr, indices) 66 67 return densities, err_densities, k_hat, dc AttributeError: module 'Pipeline._PAk' has no attribute 'get_densities' I think it's maybe about the cython? I don't know... Thanks for your help and excuse my poor English, Auturo