R/PrintPath.R

Defines functions PrintPath

Documented in PrintPath

PrintPath<-function(trace,step,obs,moveto,movefrom,lambda,digits,stats){
  if(trace){
    moveto<-rep(moveto,length=length(obs))
    movefrom<-rep(movefrom,length=length(obs))
  for(i in seq(along=obs)){
    cat(step,":\tObs ",obs[i],"\t",movefrom[i],"->",moveto[i],"  lambda = ",format(lambda, digits=digits,nsmall=digits),"  Sum Eps = ",format(round(stats$margin,2))," Elbow = ",stats$selbow," Error = ",stats$error,"\n",sep="")
  }
}
  invisible()
}

Try the svmpath package in your browser

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

svmpath documentation built on July 14, 2020, 5:06 p.m.