Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

AWS Certified AI Practitioner(AIF)対策:k近傍法(KNN)・ロジスティック回帰

Last updated at Posted at 2024-12-04

k近傍法(KNN)

分類や回帰のための非線形機械学習アルゴリズムです。

『新しいデータがどのグループに属するかを、既存のデータとの類似性に基づいて判断する手法』

ロジスティック回帰

『0から1までの値からなる確率などのデータについて、説明変数を使った式で表す手法』

ロジスティクス回帰は、回帰ではなく分類なので注意してください。

試験対策

分類問題でラベル付きデータを利用する場合

  • k近傍法(k-NN)
    • データの周囲のラベル情報に基づいて分類を行うシンプルで効果です。
  • ロジスティック回帰
    • 予測値が、0〜1に収まることになります。

犬の種類を

  • ブルドック
  • プードル
  • チワワ ...

などのカテゴリに分類するために最も適した機械学習モデルを選択するとき、k近傍法やロジスティック回帰といった分類手法を選ぶと良いでしょう。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?