plotLoss {gbev}R Documentation

Plot loss function versus iteration.

Description

The loss function at various boosting iterations is plotted.

Usage

plotLoss(object,loss="L2",startIter=1,plt=TRUE)

Arguments

object A fitted object of type gbev.object.
loss Can be "L2" or "logLike" for binary regression.
startIter Iteration at which to start plotting.
plt If TRUE then the loss is plotted, otherwise it is only returned.

Details

The loss function at increments of iterations equal to object$intermPred is plotted and returned.

Value

The function returns iters which are the iterations at which loss is evaluated, and loss the loss function value.


[Package gbev version 0.1.1 Index]