What x signifies in SVM plot

svm
r

#1

I am studying about SVM in R .I have created the model and after the creating the model I ave plot the model with the data and I am getting the x in my plot but I am not able to understand what they are and why the are generating.

set.seed(1)
x<-matrix(rnorm(20*2),ncol=2)
y<-c(rep(-1,10),rep(1,10))
x[y==1,]=x[y==1,]+1
plot(x,col=(3-y))
dat<-data.frame(x=x,y=as.factor(y))
require(e1071)
svmfit=svm(y~.,data=dat,kernel=“linear”,cost=10,scale=FALSE)
plot(svmfit,dat)


we can see there are xin the plot but points in circle .


#2

@hinduja1234- the x signifies the margins of svm which is necessary to build sperable line for classification .

Hope this helps!
Regards,
harry


#3

Oh ok. the topic is an year old. Bust since I am here let me leave my response to this since i was not satisfied with the existing response. The query is regarding the x marks in the plot I believe and they represent the 'positive’cases in this classification problem where y=1. the o represent the negative data point which lead to y=0.