Description Usage Arguments Details Value References
View source: R/2-compute-ppm-analyses.R
This function models discrete viewpoints using the Prediction by Partial Match (PPM) algorithm.
1 2 3 4 5 6 7 8 9 10 | compute_ppm_analyses(
parent_dir,
viewpoint_dir = file.path(parent_dir, "0-viewpoints"),
output_dir = file.path(parent_dir, "1-ppm"),
stm_opt = stm_options(),
ltm_opt = ltm_options(),
seq_test_folds = list(readRDS(file.path(viewpoint_dir, "about.rds"))$seq_test),
seq_pretrain = readRDS(file.path(viewpoint_dir, "about.rds"))$seq_pretrain,
viewpoints = readRDS(file.path(viewpoint_dir, "about.rds"))$discrete_viewpoints
)
|
parent_dir |
(Character scalar)
The parent directory for the output files, shared with functions such as
|
viewpoint_dir |
(Character scalar)
The directory for the already-generated
output files from |
output_dir |
(Character scalar) The output directory for the PPM analyses. Will be created if it doesn't exist already. |
stm_opt |
Options list for the short-term PPM models, as created by the function
|
ltm_opt |
Options list for the long-term PPM models, as created by the function
|
seq_test_folds |
List of cross-validation folds for the test sequences.
Each fold is represented as an integer vector,
with the integers indexing the sequences within the corpus
(see |
seq_pretrain |
(Integer vector)
Sequences used to pretrain the model (in addition to any cross-validation training
specified by |
viewpoints |
List of discrete viewpoints to analyse,
in the format produced by the |
compute_viewpoints
should be run first.
By default, only sequences in
seq_test
(see compute_viewpoints
)
are modelled using PPM.
The default PPM implementation corresponds to that described in
\insertCitePearce2005;textualhvr.
The primary output is written to disk in the dir
directory.
The output matrices provide raw probabilities for each event in the
chord alphabet.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.