geosnap.analyze.analytics.spenc¶
-
geosnap.analyze.analytics.
spenc
(X, w, n_clusters=5, gamma=1, **kwargs)[source]¶ Spatially encouraged spectral clustering.
[wolf2018]
- Parameters
- Xarray_like
n x k attribute data
- w
libpysal.weights.W
instance spatial weights matrix
- n_clusters
int
, optional, default: 5 The number of clusters to form.
- gamma
int
, default:1 TODO.
- Returns
- fitted cluster instance:
spenc.SPENC
- fitted cluster instance: