R/predict.cv.gcdclust.R

Defines functions predict.cv.gcdclust

Documented in predict.cv.gcdclust

predict.cv.gcdclust <- function(object, newx, s = c("lambda.1se", 
    "lambda.min"), ...) {
    if (is.numeric(s)) 
        lambda <- s else if (is.character(s)) {
        s <- match.arg(s)
        lambda <- object[[s]]
        
        
    } else stop("Invalid form for s")
    predict(object$gcdclust.fit, newx, s = lambda, ...)
} 
KarimOualkacha/HHSVM-ClusterNet documentation built on May 7, 2019, 12:28 p.m.