visualize_model {autostats}R Documentation

visualize model

Description

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.

Usage

visualize_model(model, ...)

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

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

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

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

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

## Default S3 method:
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


[Package autostats version 0.4.1 Index]