R/plot.learnPattern.R

plot.learnPattern <- function(x, type="l", main=deparse(substitute(x)), ...) {
  if(is.null(x$ooberrors))
    stop("No out-of-bag (OOB) error returned by learnPattern")

  matplot(1:x$ntree, x$ooberrors, type = type, xlab="trees", ylab="OOB Error",
            main=main, ...)
            
  invisible(x$ooberrors)
}

  

Try the LPStimeSeries package in your browser

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

LPStimeSeries documentation built on May 2, 2019, 8:25 a.m.