Displaying 1 result from an estimated 1 matches for "probas2".
Did you mean:
probas
2008 May 13
0
Un-reproductibility of SVM classification with 'e1071' libSVM package
...1 = predict( model, newdata = data.frame(x2, y2), probability=TRUE)
probas1 = as.numeric(attr(pred1,"probabilities")[,"TRUE"])
set.seed(15)
model = svm(data.frame(x, y), as.factor(c), probability=TRUE )
pred2 = predict( model, newdata = data.frame(x2, y2), probability=TRUE)
probas2 = as.numeric(attr(pred2,"probabilities")[,"TRUE"])
sum(pred1 != pred2) # It should be 0
sum(probas1 != probas2) # It should be 0
plot(probas1,probas2,xlim=c(0.4,0.6),ylim=c(0.4,0.6),col="red")
# redo the whole example to see some strange patterns! Especially arou...