plot.gbt: Plot method for the gbt function

plot.gbtR Documentation

Plot method for the gbt function

Description

Plot method for the gbt function

Usage

## S3 method for class 'gbt'
plot(
  x,
  plots = "",
  nrobs = Inf,
  incl = NULL,
  incl_int = NULL,
  shiny = FALSE,
  custom = FALSE,
  ...
)

Arguments

x

Return value from gbt

plots

Plots to produce for the specified Gradient Boosted Tree model. Use "" to avoid showing any plots (default). Options are ...

nrobs

Number of data points to show in scatter plots (-1 for all)

incl

Which variables to include in a coefficient plot or PDP plot

incl_int

Which interactions to investigate in PDP plots

shiny

Did the function call originate inside a shiny app

custom

Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This option can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and https://ggplot2.tidyverse.org for options.

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/model/gbt.html for an example in Radiant

See Also

gbt to generate results

summary.gbt to summarize results

predict.gbt for prediction

Examples

result <- gbt(
  titanic, "survived", c("pclass", "sex"),
  early_stopping_rounds = 0, nthread = 1
)
plot(result)


radiant.model documentation built on Oct. 16, 2023, 9:06 a.m.