Dec-29-2019, 09:51 AM
Hi, I am learning Python and I have the following code that gives me the following error:
ValueError: The condensed distance matrix must contain only finite values.
The code I have is:
However, when I apply it to my own data (~500 data points with no duplication), I got this error. Can someone help?
I searched online and there are others who encountered the same issue. I still couldn't find the solution tho.
Thanks,
Sam
ValueError: The condensed distance matrix must contain only finite values.
The code I have is:
hier_clust = linkage(segmentation_std, method='ward')This seems to be very simple. I got the code from a course that I took and it works fine for the course data.
However, when I apply it to my own data (~500 data points with no duplication), I got this error. Can someone help?
I searched online and there are others who encountered the same issue. I still couldn't find the solution tho.
Thanks,
Sam