반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

sklearn.datasets.make_moons 본문

[AI]/python.sklearn

sklearn.datasets.make_moons

givemebro 2020. 4. 21. 11:47
반응형
from sklearn.datasets import make_moons

 

 

X,y=make_moons(noise=0.1)
plt.scatter(X[:,0],X[:,1],c=y)

np.bincount(dbscan.labels_+1) # +1을 해줘야함!
# array([ 8, 25, 23, 17, 27], dtype=int64)
반응형
Comments