R/print.customizedGlmnet.R

print.customizedGlmnet <-
function(x, ...)
{
    cat("\nCall: \n")
    print(x$call)

    cat("\nn =", nrow(x$x$train), "training observations\n")
    cat("m =", nrow(x$x$test), "test observations\n")
    cat("p =", ncol(x$x$train), "predictor variables\n\n")

    for (group in sort(unique(x$groupid))) {
        cat("Model ", group, ": ", sep = "")
        cat(length(x$CTset[[group]]), "train obs. and ")
        cat(sum(x$groupid == group), "test obs.\n")
    }
    cat("\n")
}

Try the customizedTraining package in your browser

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

customizedTraining documentation built on May 2, 2019, 2:31 p.m.