cluster-computing

cannot import name 'BisectingKMeans' from 'sklearn.cluster' (C:UsersAdministratoranaconda3libsite-packagessklearncluster__init__.py)

cannot import name 'BisectingKMeans' from 'sklearn.cluster' (C:UsersAdministratoranaconda3libsite-packagessklearncluster__init__.py) Question: When I try to use sklearn.cluster.BisectingKMeans in my jupyter notebook, an ImportError occured. It is said in the document that this method is new in version 1.1, and my scikit-learn version is 1.1.3. I was using the base environment so it’s not an issue of lacking package …

Total answers: 1

How to ignore a color or alpha when using clusters

How to ignore a color or alpha when using clusters Question: I am trying to find the dominant color of an image using Pil and cluster. My problem is that my images has a transparent background because these are .png and so i always get black as the dominant color. I’d like to ignore the …

Total answers: 1

How to change the working directory on Slurm

How to change the working directory on Slurm Question: I am working on a slurm cluster where I am running couple of jobs. It is hard for me to check the jobs one by one in each directory. I could manage to check in which directory the jobs are running using scontrol show job JOB_ID …

Total answers: 1

Python "FileExists" error when making directory

"OSError: [Errno 17] File exists" when trying to use os.makedirs Question: I have several threads running in parallel from Python on a cluster system. Each python thread outputs to a directory mydir. Each script, before outputting checks if mydir exists and if not creates it: if not os.path.isdir(mydir): os.makedirs(mydir) but this yields the error: os.makedirs(self.log_dir) …

Total answers: 5