Skip to contents

Reads an impute_result previously saved by save_impute_result. R-native fields are restored from the RDS file. If a CISSVAE model was saved, the architecture is rebuilt from the stored configuration, the state_dict weights are loaded, and the model is placed in evaluation mode (model.eval()).

The CISSVAE class is imported from the installed ciss_vae.classes Python package using reticulate::import.

Usage

load_impute_result(dir, name = "result", device = "cpu")

Arguments

dir

Character string. Path to the directory written by save_impute_result.

name

Character string. Base name used when saving.

device

Character string. PyTorch device ("cpu" or "cuda").

Value

An impute_result object with model restored if present.