mrFlashlight: Wrapper to run multi-response model agnostic interpretable machine learning analyses.

mrFlashlight(
  yhats,
  X,
  Y,
  response = "multi",
  index = 1,
  mode = "regression",
  predict_function = NULL
)

Arguments

yhats

A list is the list generated by mrIMLpredicts

X

A dataframe is the feature data set

Y

A dataframe is a response variable data set (species, OTUs, SNPs etc)

response

character single' selects one response, 'multi' selects all responses

index

numeric selects which response to create a flashlight object for. Only used when 'single' is selected. The order is the same as 'Y'.

mode

character'classification' or 'regression' i.e., is the generative model a regression or classification?

predict_function

function user specified predict function

Details

The aim of this function is to enable users to utilize interpretable machine learning methods to understand their multi-response and single response models