s3 method to automatically visualize the output of of a model object. Additional arguments can be supplied for the original function. Check the corresponding plot function documentation for any custom arguments.

visualize_model(model, ...)

# S3 method for RandomForest
visualize_model(model, ..., method)

# S3 method for BinaryTree
visualize_model(model, ..., method)

# S3 method for glm
visualize_model(model, ..., method)

# S3 method for multinom
visualize_model(model, ..., method)

# S3 method for xgb.Booster
visualize_model(
  model,
  top_n = 10L,
  aggregate = NULL,
  as_table = FALSE,
  formula = NULL,
  measure = c("Gain", "Cover", "Frequency"),
  ...,
  method
)

# S3 method for default
visualize_model(model, ..., method)

Arguments

model

a model

...

additional arguments

method

choose amongst different visualization methods

top_n

return top n elements

aggregate

= summarize

as_table

= false, table or graph,

formula

= formula,

measure

= c("Gain", "Cover", "Frequency")

Value

a plot