Open
Description
Describe the bug
Unfortunately I am getting an exit code in Pycharm when doing clustering with k-means++.
I tried nearly everything. Setup new Pycharm project try using different versions of numpy or sklearn.
Steps/Code to Reproduce
def __cluster(num_clusters: int, data: list[list[float]]):
km = KMeans(n_clusters=num_clusters)
return km.fit_predict(data)
distributions_filename: str = "distributions.json"
with open(distributions_filename) as f:
distributions: list[list[float]] = json.load(f)
buckets = __cluster(num_clusters=200, data=distributions)
Expected Results
clustered buckets
Actual Results
before the clustering is finished I get an error: "Process finished with exit code -1073741819 (0xC0000005)"
Versions
System:
python: 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
executable: C:\Users\maron\Desktop\test\venv\Scripts\python.exe
machine: Windows-10-10.0.19044-SP0
Python dependencies:
sklearn: 1.1.2
pip: 21.3.1
setuptools: 60.2.0
numpy: 1.23.3
scipy: 1.9.1
Cython: None
pandas: None
matplotlib: None
joblib: 1.2.0
threadpoolctl: 3.1.0
Built with OpenMP: True
threadpoolctl info:
user_api: openmp
internal_api: openmp
prefix: vcomp
filepath: C:\Users\maron\Desktop\test\venv\Lib\site-packages\sklearn\.libs\vcomp140.dll
version: None
num_threads: 32
user_api: blas
internal_api: openblas
prefix: libopenblas
filepath: C:\Users\maron\Desktop\test\venv\Lib\site-packages\numpy\.libs\libopenblas.FB5AE2TYXYH2IJRDKGDGQ3XBKLKTF43H.gfortran-win_amd64.dll
version: 0.3.20
threading_layer: pthreads
architecture: Zen
num_threads: 24
user_api: blas
internal_api: openblas
prefix: libopenblas
filepath: C:\Users\maron\Desktop\test\venv\Lib\site-packages\scipy\.libs\libopenblas.PZA5WNOTOH6FZLB2KBVKAURAKVTFSNNU.gfortran-win_amd64.dll
version: 0.3.18
threading_layer: pthreads
architecture: Zen
num_threads: 24