Skip to contents

Loads a previously saved Markov model. Auto-detects the format:

  • If file is a directory, reads the .gsm directory format

  • If file is a file, tries ZIP .gsm format first, then falls back to legacy RDS format

Usage

gsynth.load(file)

Arguments

file

Path to the saved model (directory, .gsm zip, or legacy .rds)

Value

A gsynth.model object

Details

A .gsm model saved by a misha version whose gsynth.save did not store the iterator has none: before gsynth.sample or gsynth.score can use a stratified model, set model$iterator to the iterator used in gsynth.train. An unstratified model samples without it.