Midae.boot2: R6 class for Midae bootstrapping imputer2

Midae.boot2R Documentation

R6 class for Midae bootstrapping imputer2

Description

Set up a Midae (with bootstrapping where BI=M) imputer object with specified hyperparameters and then obtain multiple imputed datasets

Methods

Public methods


Method new()

Usage
Midae.boot2$new(
  data,
  n_h = 2L,
  encoder_structure = c(128L, 64L, 32L),
  decoder_structure = "reversed",
  learn_rate = 1e-04,
  iteration = 400,
  batch_size = 500,
  input_drop = 0.2,
  hidden_drop = 0,
  act = tf$nn$elu,
  weight_decay = "default",
  epsilon = 1e-07,
  rho = 0.95,
  decay = 0.9,
  momentum = 0.9,
  optimizer = "Adam"
)

Method train()

Usage
Midae.boot2$train(verbose = TRUE, print_freq = 1, B = 1)

Method impute()

Usage
Midae.boot2$impute(
  B = 1,
  I = 5,
  onehot = FALSE,
  all.numeric = FALSE,
  add.noise = FALSE,
  SD = 1,
  pmm = FALSE
)

Method clone()

The objects of this class are cloneable with this method.

Usage
Midae.boot2$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


agnesdeng/misle documentation built on Sept. 22, 2023, 8:48 p.m.