View source: R/approach_vaeac.R
vaeac_impute_missing_entries | R Documentation |
Impute Missing Values Using Vaeac
vaeac_impute_missing_entries(
x_explain_with_NaNs,
n_MC_samples,
vaeac_model,
checkpoint,
sampler,
batch_size,
verbose = NULL,
seed = NULL,
n_explain = NULL,
index_features = NULL
)
x_explain_with_NaNs |
A 2D matrix, where the missing entries to impute are represented by |
n_MC_samples |
Integer. The number of imputed versions we create for each row in |
vaeac_model |
An initialized |
checkpoint |
List containing the parameters of the |
sampler |
A sampler object used to sample the MC samples. |
batch_size |
Positive integer (default is |
verbose |
String vector or NULL.
Specifies the verbosity (printout detail level) through one or more of strings
|
seed |
Positive integer (default is |
n_explain |
Positive integer. The number of explicands. |
index_features |
Optional integer vector. Used internally in shapr package to index the coalitions. |
Function that imputes the missing values in 2D matrix where each row constitute an individual. The values are sampled from the conditional distribution estimated by a vaeac model.
A data.table where the missing values (NaN
) in x_explain_with_NaNs
have been imputed n_MC_samples
times.
The data table will contain extra id columns if index_features
and n_explain
are provided.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.