{"title":" Ruby\u3067\u6c7a\u5b9a\u6728\u3068\u304b\u4f7f\u3046\u306a\u3089ai4r\u304c\u3044\u3044\u3089\u3057\u3044\u3051\u3069\u82e6\u3057\u3093\u3060\u306e\u3067\u5225\u306e\u65b9\u6cd5\u3092\u8003\u3048\u308b","author_url":"https://blog.hatena.ne.jp/repose/","width":"100%","height":"190","version":"1.0","url":"https://repose.hatenadiary.jp/entry/20111018/1318866656","blog_url":"https://repose.hatenadiary.jp/","published":"2011-10-18 00:50:56","image_url":null,"provider_name":"Hatena Blog","blog_title":"\u7cde\u7cde\u7cde\u30cd\u30c3\u30c8\u5f01\u6176","categories":["\u30e1\u30e2"],"author_name":"repose","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frepose.hatenadiary.jp%2Fentry%2F20111018%2F1318866656\" title=\" Ruby\u3067\u6c7a\u5b9a\u6728\u3068\u304b\u4f7f\u3046\u306a\u3089ai4r\u304c\u3044\u3044\u3089\u3057\u3044\u3051\u3069\u82e6\u3057\u3093\u3060\u306e\u3067\u5225\u306e\u65b9\u6cd5\u3092\u8003\u3048\u308b - \u7cde\u7cde\u7cde\u30cd\u30c3\u30c8\u5f01\u6176\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","description":"Ruby\u3067\u6a5f\u68b0\u5b66\u7fd2\u3059\u308b\u5fc5\u8981\u304c\u751f\u3058\u3066ai4r\u306e\u5c0e\u5165\u3092\u691c\u8a0e\u3057\u305f\uff0e http://ai4r.rubyforge.org/ \u3060\u3044\u305f\u3044\u3053\u3093\u306a\u611f\u3058\u3067\u66f8\u3051\u308b\uff0e\u30c7\u30fc\u30bf\u306fUCI Machine Learning Repository: Wine Data Set\uff0e # -*- coding: utf-8 -*- require \"ai4r\" # \u5b66\u7fd2 train_data = Ai4r::Data::DataSet.new.load_csv_with_labels(\"./train_wine.csv\") tree_id3 = Ai4r::Classifiers::ID3.new.build(train_data\u2026"}