plotObj: Plot the historical values of objective function

Description Usage Arguments Examples

View source: R/MTL.R

Description

Plot the values of objective function across iterations in the optimization procedure. This function indicates the "inner status" of the solver during the optimization, and could be used for diagnosis of the solver and training procedure.

Usage

1

Arguments

m

A trained MTL model

Examples

1
2
3
4
5
6
7
#create the example date
data<-Create_simulated_data(Regularization="L21", type="Regression")
#Train a MTL model
model<-MTL(data$X, data$Y, type="Regression", Regularization="L21",
    Lam1=0.1, Lam2=0, opts=list(init=0,  tol=10^-6, maxIter=1500))
#plot the objective values
plotObj(model)

transbioZI/RMTL documentation built on May 5, 2019, 1:32 a.m.