| plot_training_trials | R Documentation |
This function takes a sequence of training trials, each consisting of words and objects, and creates an animated plot of the word-object co-occurrence matrix. The plot evolves over each trial, visually representing the accumulation of co-occurrences. The animation is saved to a file if a filename is provided.
plot_training_trials(train, filename = NULL)
train |
A list representing the training data, where each element is a
trial containing lists of words ( |
filename |
A string specifying the filename where the animation should be saved. If NULL, no file will be saved. |
A long-format data frame where each row corresponds to a trial and includes columns for trial number, word, object, and the count of co-occurrences up to that trial.
plot_training_trials(xsl_datasets[[1]]$train)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.