from xlearn.cluster import KMeans
import xarray as xr
import numpy as np
da = xr.DataArray(np.random.randn(100, 2, 3))
m = KMeans(n_clusters=4, random_state=0).fit(da)
wy2136/xlearn
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
| Name | Name | Last commit date | ||
|---|---|---|---|---|
from xlearn.cluster import KMeans
import xarray as xr
import numpy as np
da = xr.DataArray(np.random.randn(100, 2, 3))
m = KMeans(n_clusters=4, random_state=0).fit(da)