Saves a trained Markov model in the cross-platform .gsm format, which
consists of a metadata YAML file and raw binary arrays for counts and CDFs.
The .gsm format can be stored as a directory (default) or a ZIP archive.
The model's iterator (model$iterator), which gsynth.sample
and gsynth.score use, is saved when it is a bin size.
Arguments
- model
A gsynth.model object from
gsynth.train- file
Path to save the model (directory or .zip file)
- compress
Logical. If
TRUE, save as a ZIP archive. IfFALSE(default), save as a directory.