0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Python】scikit-learnのk-meansのクラスタリングについて

Posted at

k-meansは次の流れでデータをクラスタリングします。
image.png

クラスタ数は「kmeans = KMeans(n_clusters=3)」のように、KMeansクラスをインスタンス化する際に、引数「n_clusters」で指定します。

k-meansは直線(線形)で分割できるデータしか扱えません。次の図のように曲線(非線形)で分割する必要があるデータは、DBSCANなどの他の教師なしアルゴリズムを使用します。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?