# GBM performance

### Description

Estimates the optimal number of boosting iterations for a `gbm`

object and
optionally plots various performance measures

### Usage

1 2 3 4 5 |

### Arguments

`object` |
a |

`plot.it` |
an indicator of whether or not to plot the performance measures.
Setting |

`oobag.curve` |
indicates whether to plot the out-of-bag performance measures in a second plot. |

`overlay` |
if TRUE and oobag.curve=TRUE then a right y-axis is added to the training and test error plot and the estimated cumulative improvement in the loss function is plotted versus the iteration number. |

`method` |
indicate the method used to estimate the optimal number
of boosting iterations. |

### Value

`gbm.perf`

returns the estimated optimal number of iterations. The method
of computation depends on the `method`

argument.

### Author(s)

Greg Ridgeway gregridgeway@gmail.com

### See Also

`gbm`

, `gbm.object`

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.