R语言svm支持向量机分类与参数优化

首先构建数据集 x<-c(runif(50,0,1),runif(100,1,3),runif(50,3,4)) y<-runif(200,0,1) z<-c(rep(0,50),rep(1,100),rep(0,50)) data<-cbind(x,y,z) 画出数据集的情况 plot(x,y,col=c(rep('red',50),rep('blue',100),rep('red',50)))
相关文章
相关标签/搜索