plot.cvMTL: Plot the cross-validation curve

View source: R/MTL.R

plot.cvMTLR Documentation

Plot the cross-validation curve

Description

Plot the cross-validation curve

Usage

## S3 method for class 'cvMTL'
plot(x, ...)

Arguments

x

The returned object of function cvMTL

...

Other parameters

Examples

#create the example data
data<-Create_simulated_data(Regularization="L21", type="Classification")
#perform the cv
cvfit<-cvMTL(data$X, data$Y, type="Classification", Regularization="L21", 
    Lam2=0, opts=list(init=0,  tol=10^-6, maxIter=1500), nfolds=5,
    stratify=TRUE, Lam1_seq=10^seq(1,-4, -1))
#plot the curve
plot(cvfit)

RMTL documentation built on May 2, 2022, 5:06 p.m.