geosnap.analyze.analytics.spectral

geosnap.analyze.analytics.spectral(X, n_clusters, eigen_solver=None, random_state=None, n_init=10, gamma=1.0, affinity='rbf', n_neighbors=10, eigen_tol=0.0, assign_labels='kmeans', degree=3, coef0=1, kernel_params=None, n_jobs=-1, **kwargs)[source]

Short summary.

Parameters
Xarral-like

n x k attribute data

n_clusterstype

The number of clusters to form as well as the number of centroids to generate.

eigen_solvertype

Description of parameter eigen_solver (the default is None).

random_statetype

Description of parameter random_state (the default is None).

n_inittype

Description of parameter n_init (the default is 10).

gammatype

Description of parameter gamma (the default is 1.0).

affinitytype

Description of parameter affinity (the default is ‘rbf’).

n_neighborstype

Description of parameter n_neighbors (the default is 10).

eigen_toltype

Description of parameter eigen_tol (the default is 0.0).

assign_labelstype

Description of parameter assign_labels (the default is ‘kmeans’).

degreetype

Description of parameter degree (the default is 3).

coef0type

Description of parameter coef0 (the default is 1).

kernel_paramstype

Description of parameter kernel_params (the default is None).

n_jobstype

Description of parameter n_jobs (the default is -1).

**kwargstype

Description of parameter **kwargs.

Returns
model: sklearn SpectralClustering instance