R/wvec.R

"wvec" <- 
function(x,y = y) {
   w <- NULL
   w[y == 1] <- 1-x
   w[y ==-1] <- x
   w
}

Try the probsvm package in your browser

Any scripts or data that you put into this service are public.

probsvm documentation built on May 1, 2019, 10:56 p.m.