search for: firstcalc

Displaying 1 result from an estimated 1 matches for "firstcalc".

Did you mean: firstcall
2011 Jul 24
0
repeated execution of svm(e1071) gives different results, if probability = TRUE is set
...code example. You can run it a few times. library('e1071') prob <- function() { model <- svm(Species ~ ., data = iris[-1,], probability=TRUE) p <- predict(model, newdata=iris[1,], probability=TRUE) pr <- attr(p, "probabilities") print(pr) return(pr) } cat('FirstCalc==SecondCalc:',all( prob() == prob() ),'\n') Valdas