Rで何かをしたり、読書をするブログ
id:cross_hyou
UCI Machine Learning Repository の Wholesale customers のデータの分析4 - 決定木モデルで分類
(Bing Image Creator で生成: Close up of yellow rapeseed flowers, background is rapeseed fields, photo) www.crosshyou.info の続きです。今回は R の rpart パッケージを使い、決定木モデルで分類してみます。 まずは、rpart, rpart.plot パッケージを読み込みます。 前回のロジスティクス回帰モデルでは、Fresh:Gro…