Description Usage Arguments Value
View source: R/5-compute-predictions.R
Computes predictions from a trained viewpoint regression model. The following routines will typically be run first:
compute_viewpoints
compute_ppm_analyses
compute_model_matrix
viewpoint_regression
1 2 3 4 5 6 7 |
parent_dir |
(Character scalar)
The parent directory for the output files, shared with functions such as
|
weights |
If |
model_matrix_dir |
(Character scalar)
The directory for the already-generated
output files from |
regression_dir |
(Character scalar)
The directory for the already-generated
output files from |
output_dir |
(Character scalar) The output directory for the new results. Will be created if it doesn't exist already. |
A tibble with one row for each event in the
model matrix, with the following columns:
seq_id - Index of the sequence within the corpus
(see compute_viewpoints).
event_id - Index of the chord within the sequence.
chord_id - Encoded chord symbol
(see pc_chord, encode).
chord - Decoded chord symbol.
probability - Probability of the observed chord.
information_content - Information content of the observed chord.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.