Save a trained TorchDecon model or ensemble to disk.
Usage
SaveModel(model, path, overwrite = FALSE)
Arguments
- model
A TorchDeconModel or TorchDeconEnsemble object.
- path
Character. Directory path to save the model.
- overwrite
Logical. Overwrite existing files. Default is FALSE.
Value
Invisibly returns the save path.
Details
The function saves:
Network weights (.pt files)
Model metadata (genes, cell types, architecture)
Training history (if available)
Examples
if (FALSE) { # \dontrun{
SaveModel(trained_model, "my_model")
} # }