sklearn.cluster.estimate_bandwidth()

sklearn.cluster.estimate_bandwidth

sklearn.cluster.estimate_bandwidth(X, quantile=0.3, n_samples=None, random_state=0, n_jobs=1) [source]

Estimate the bandwidth to use with the mean-shift algorithm.

That this function takes time at least quadratic in n_samples. For large datasets, it’s wise to set that parameter to a small value.

Parameters:

X : array-like, shape=[n_samples, n_features]

Input poin