r - Store the summary of kknn into a data.frame -


i have performed kknn operation on data set. want convert summary of operation data.frame. here sample data:

x <- data.frame(a=c(4,2,2,5,2,4), b=c("m","f","m","m","m","m"),                   c=c(53,50,44,47,42,43))   n <- dim(x)[1]   samplevalues <- sample(1:n,size=round(n/3),replace=f,prob=rep(1/n,n))   x.train <- x[-samplevalues,]   x.test <- x[samplevalues,]   x.kknn <- kknn(b~., x.train, x.test, distance=1, kernel="triangular")   

is possible store summary(x.kknn) in data.frame?


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -