View source: R/approach_vaeac_torch_modules.R
vaeac_postprocess_data | R Documentation |
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.
vaeac_postprocess_data(data, vaeac_model_state_list)
data |
data.table containing the data generated by a vaeac model |
vaeac_model_state_list |
List. The returned list from the |
data.table with the generated data from a vaeac model where the categorical features now have the original class names.
Lars Henry Berge Olsen
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.