Rで何かをしたり、読書をするブログ
id:cross_hyou
UCI Machine Learning Repository の Credit Approval のデータ分析5 - k-Nearest Neighbors でクラシフィケーション
Bing Image Creator で生成: Long view of blue ocean and high cliff, blue sky and white clouds, photo www.crosshyou.info の続きです。 今回は、k-Nearest Neighbors でクラシフィケーションをします。 まず、モデルを生成します。 fit() 関数でモデルをフィットします。 predict() 関数で予測します。 predict() 関…