live_extractor: LIVE wrapper

Description Usage Arguments Value

View source: R/extract_variables.R

Description

LIVE wrapper

Usage

1
2
live_extractor(instance, target, training_set, model,
  predict_function = predict, ...)

Arguments

instance

data frame that contains the observation to explain

target

name of the response variable

training_set

data on which the explained 'model“ was trained

model

model to be explained

predict_function

predict function for 'model' which returns classes, defaults to 'predict'

...

additional parameters to 'live::sample_locally2' function, 'size' argument must be included

Value

list that consists of

explanation_model

object returned by 'lime::fit_explanation2' function

variables

character vector of names of variables that contributed to the wrong prediction


mstaniak/egalitaRian documentation built on Aug. 26, 2019, 11:11 p.m.