コンテンツにスキップ

k近傍法

出典: フリー百科事典『ウィキペディア(Wikipedia)』

k: k-nearest neighbor algorithm, k-NNk/[1]

使k 使

[]


k

(一)

(二)k

(三)

k/[1]

/湿///k=5 k100- k=5 5////

k k k = 1 k 

使 k

使使k

[]

kk = 3 k = 5 

 k c使

k k k 

[]


k  kk k = 1  k

kfeature selection使使

[]




kd

Metric tree

Locality sensitive hashing (LSH)

2k k

k k
  1. 対象データと他のデータのユークリッド距離かマハラノビス距離を計算する。
  2. 計算された距離の順にデータをソートする。
  3. ヒューリスティックによって決めた最適な k 個の近傍を選ぶ(根二乗平均誤差など)
  4. それらについて、距離の逆数で重み付けした平均を求める。

脚注[編集]

  1. ^ a b "K 近傍法は ... 与えられた学習データと入力データとの距離を計算し、距離の近い順に探し出した K 個の学習データ ... 多数決で得られた結果を、分類結果とする比較的シンプルなアルゴリズムです。" 総務省統計研究研修所. 第3章 機械学習(教師あり学習). 高等学校における「情報II」のためのデータサイエンス・データ解析入門. 2023-09-30閲覧.

関連項目[編集]

参考文献[編集]

  • Belur V. Dasarathy, editor(1991)Nearest Neighbor(NN)Norms: NN Pattern Classification Techniques, ISBN 0-8186-8930-7
  • Nearest-Neighbor Methods in Learning and Vision, edited by Shakhnarovish, Darrell, and Indyk, The MIT Press, 2005, ISBN 0-262-19547-X
  • Estimation of forest stand volumes by Landsat TM imagery and stand-level field-inventory data. Forest Ecology and Management, Volume 196, Issues 2-3, 26 July 2004, Pages 245-255. Helena Mäkelä and Anssi Pekkarinen
  • Estimation and mapping of forest stand density, volume, and cover type using the k-nearest neighbors method. Remote Sensing of Environment, Volume 77, Issue 3, September 2001, Pages 251-274. Hector Franco-Lopez, Alan R. Ek and Marvin E. Bauer

外部リンク[編集]