{"published":"2014-04-20 18:12:39","description":"\u30e2\u30c7\u30eb\u306b\u3088\u3063\u3066\u6700\u9069\u306a\u30ab\u30fc\u30cd\u30eb\u304c\u7570\u306a\u308b > kernel.vec <- c('linear','poly','radial','sigmoid') > scores <- data.frame() > for(word in kernel.vec){ + iris.svm <- svm(Species~.,iris,kernel=word,cross=5) + prediction <- predict(iris.svm,iris[,1:4]) + result <- table(prediction,iris$Species) + score <- sum(diag(result))/sum(\u2026","image_url":null,"type":"rich","blog_title":"how to code something","height":"190","url":"https://seinzumtode.hatenadiary.jp/entry/20140420/1397985159","author_url":"https://blog.hatena.ne.jp/seinzumtode/","provider_url":"https://hatena.blog","blog_url":"https://seinzumtode.hatenadiary.jp/","title":"SVM\u306e\u30ab\u30fc\u30cd\u30eb\u6bd4\u8f03","provider_name":"Hatena Blog","version":"1.0","author_name":"seinzumtode","categories":[],"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20140420%2F1397985159\" title=\"SVM\u306e\u30ab\u30fc\u30cd\u30eb\u6bd4\u8f03 - how to code something\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}