'Perform clustering.
Parameters
X : array-like, shape=[n_samples, n_features]
Samples to cluster.'

def fit(self, X, y=None):

    X = check_array(X)
    (self.cluster_centers_, self.labels_) = mean_shift(X, bandwidth=self.bandwidth, seeds=self.seeds, min_bin_freq=self.min_bin_freq, bin_seeding=self.bin_seeding, cluster_all=self.cluster_all, n_jobs=self.n_jobs)
    return self
