I want to clustering algorithm to the below image in jupyter platform. I'm trying to learn on my own. I do know how to implement the code but I don't know how to take the below image as an input dataset.
$\begingroup$
$\endgroup$
2
-
$\begingroup$ Why are you operating on the image, instead of the data points directly? If this is really about ingesting the image, it’s a programming question and off-topic for Cross Validated. $\endgroup$– Arya McCarthyCommented Mar 25, 2022 at 10:49
-
$\begingroup$ @AryaMcCarthy this was definetly to the topic. It was just I was just wondering that.... But thankyou for taking time $\endgroup$– Shubham GuptaCommented Mar 25, 2022 at 16:16
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
2
Taking an image of dots as input and obtaining a list of coordinates of those points, this is nontrivial. You are far better off just creating your own set of points. Helpful libraries exist, e.g. sklearn.datasets.make_blobs().
-
$\begingroup$ Actually, i found this image on somebook, so I thought can't I just applying clustering algorithm to this image directly. $\endgroup$ Commented Mar 25, 2022 at 16:12
-
$\begingroup$ but from your explanation, it is clear that it is not possible to do so (only possible by using data points). However, it seems make_blobs will suffice for this purpose. True? $\endgroup$ Commented Mar 25, 2022 at 16:14