Skip to contents

This is the class of auto visual inference, inherited from bandicoot::BASE. It is an environment with S3 class bandicoot_oop.

Usage

auto_vi(
  fitted_model,
  keras_model = NULL,
  data = NULL,
  node_index = 1L,
  env = new.env(parent = parent.frame()),
  init_call = sys.call()
)

residual_checker(
  fitted_model,
  keras_model_name = "vss_phn_32",
  data = NULL,
  node_index = 1L,
  env = new.env(parent = parent.frame()),
  init_call = sys.call()
)

Arguments

fitted_model

Model. A model object, e.g. lm.

keras_model

Keras model. A trained computer vision model.

data

Data frame. The data used to fit the model.

node_index

Integer. An index indicating which node of the output layer contains the visual signal strength. This is particularly useful when the keras model has more than one output nodes.

env

Environment. The instance environment.

init_call

Call. Contents of the ..init_call... It is recommended to leave it as default.

keras_model_name

Character. A model name to be used by get_keras_model(). See also list_keras_model().

Value

An instance environment.

Functions

  • auto_vi(): Class constructor, same as AUTO_VI$instantiate().

  • residual_checker(): Class constructor, same as AUTO_VI$instantiate(), but uses the keras_model_name argument rather than keras_model.