Postprocess Data Generated by a vaeac Model
Source:R/approach_vaeac_torch_modules.R
vaeac_postprocess_data.Rd
vaeac generates numerical values. This function converts categorical features to from numerics with class labels 1,2,...,K, to factors with the original and class labels.
Value
data.table with the generated data from a vaeac model where the categorical features now have the original class names.
Examples
if (FALSE) { # \dontrun{
data <- data.table(matrix(rgamma(500 * 3, 2), ncol = 3))
preprocessed <- vaeac_preprocess_data(data)
preprocessed$data_preprocessed
postprocessed <- vaeac_postprocess_data(preprocessed$data_preprocessed, preprocessed)
postprocessed
all.equal(data, postprocessed)
} # }