I am trying to segment a colour image through using Mean-Shift clustering using sklearn.
For the following two lines of code:
ms = MeanShift(bandwidth=bandwidth, bin_seeding=True)
ms.fit(X)
I don't understand what the MeanShift function returns. In the scikit-learn documentation here, there is no description of what the function returns. What is the ms variable? Any insights are appreciated.
MeanShift is a class. You are creating an object. You are invoking its constructor method. This creates an instance of MeanShift on which you can perform
fit,predictorfit_predict.Refer to Python documentation.