this is my code:
When I run to the last line of code, the Jupyter kernel keeps crashing, but no error is displayed in the terminal
At first I thought it was because of the conflict in the library version in my Python virtual environment, but when I ran this code in a recreated virtual environment to ensure there was no conflict, the jupyter kernel also crashed automatically, and it was not a problem with the large amount of data. I also tried the dbscan clustering algorithm, which worked fine, but the kmeans clustering kept having problems. My computer is running macOS, so I wonder if it’s a memory-related problem?
tiredtian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.