Package: XSLmodels 0.4.0

XSLmodels: Run and Optimize Cross-Situational Word Learning Models

A collection of cognitive models of cross-situational word learning, together with methods and datasets for fitting and cross-validating them against experimental and corpus data, and for plotting the results.

Authors:George Kachergis [aut, cre], Mika Braginsky [aut], Kevin Liang [aut]

XSLmodels_0.4.0.tar.gz
XSLmodels_0.4.0.zip(r-4.7-any)XSLmodels_0.4.0.zip(r-4.6-any)XSLmodels_0.4.0.zip(r-4.5-any)
XSLmodels_0.4.0.tgz(r-4.6-any)XSLmodels_0.4.0.tgz(r-4.5-any)
XSLmodels_0.4.0.tar.gz(r-4.7-any)XSLmodels_0.4.0.tar.gz(r-4.6-any)
XSLmodels_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
XSLmodels/json (API)

# Install 'XSLmodels' in R:
install.packages('XSLmodels', repos = c('https://kachergis.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kachergis/xslmodels/issues

Pkgdown/docs site:https://www.kachergis.com

Datasets:

On CRAN:

Conda:

5.18 score 17 scripts 56 exports 30 dependencies

Last updated from:b44b9fa9f2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK233
source / vignettesOK247
linux-releaseOK187
macos-releaseOK257
macos-oldrelOK239
windows-develOK205
windows-releaseOK150
windows-oldrelOK209
wasm-releaseOK116

Exports:baselinebayesian_decaycreate_cooc_matrixcross_validated_group_fitsdecayfazlyfgt2009fgt2009_rsafgt2009_sweep_alphaget_crossvalidated_model_fitget_example_ambiguous_conditionget_example_unambiguous_conditionget_fscoreget_group_model_fitget_perfget_rocget_roc_maxget_tpget_train_test_splitguess_and_testkalman_filtermafc_testminerva2multi_samplingnew_xslControlnew_xslDatanew_xslFitnew_xslModplot_rocplot_training_trialspredict_referentpropose_but_verifypursuitremrescorla_wagnerrsa_listenerrsa_speakershow_datasetsshow_modelssoftmax_rltillestodamuncfamuncfam_attentionuncfam_eliminationuncfam_gammauncfam_generaluncfam_predictiveuncfam_samplingupdate_paramsxsl_fitxsl_runxslControlxslDataxslFitxslMod

Dependencies:clicpp11DEoptimdplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Overview of XSLmodels: Importing cross-situational datasets and fitting models
Defining and structure of cross-situational learning (XSL) datasets. | 0. Importing a Dataset | 1. Structure of an experimental condition | 2. Viewing an experiment's structure | 3. Included experimental conditions | Running, fitting, and defining XSL models. | 4. Run model with given parameters through a single dataset and pull SSE. | 5. Run a model with given parameters through multiple datasets and pull SSE. | 6. Evaluating model performance | 7. Using the helper functions | 8. Model fitting | 9. Available models | 10. Prior learning: training trials or a start matrix | 11. Testing generalization on held-out datasets

Last update: 2026-10-07
Started: 2026-07-12

Running and fitting models on naturalistic corpora
Running a model | Scoring against the gold lexicon | The intentional Bayesian model | "Fitting": sweeping the lexicon-size prior | The FM corpus and its coded intentions | A quick model comparison | Fitting to a corpus | References

Last update: 2026-10-07
Started: 2026-09-04

Readme and manuals

Help Manual

Help pageTopics
Baseline modelbaseline
Bayesian decay modelbayesian_decay
Benitez et al. (2020) temporal-structure-of-naming experiment databenitez2020
Creates co-occurrence matrix from training trialscreate_cooc_matrix
Perform Cross-Validation on Group Fits of a Modelcross_validated_group_fits
Decay modeldecay
Fazly et al. 2010 probablistic associative modelfazly
Frank, Goodman & Tenenbaum (2009) intentional Bayesian word-learning modelfgt2009
Frank, Goodman & Tenenbaum word-learning model with pragmatic (RSA) reasoningfgt2009_rsa
Sweep the lexicon-size prior alpha for an FGT modelfgt2009_sweep_alpha
Frank, Tenenbaum & Fernald naturalistic word-learning corpusfm_corpus
Gangwani, Kachergis & Yu simultaneous category + object name learninggangwani2011_category
Get cross-validated model fitget_crossvalidated_model_fit
Get example ambiguous conditionget_example_ambiguous_condition
Get example unambiguous conditionget_example_unambiguous_condition
Calculate F-score, precision, recall, and specificity for a knowledge matrix at a given thresholdget_fscore
Get group model fit for a specific modelget_group_model_fit
Calculate Luce choice (proportion correct) for each item in a model knowledge matrixget_perf
Calculate receiver operating characteristic (ROC) scores for a model association Matrixget_roc get_roc_max plot_roc
Get true positives (TP), given a knowledge matrix and a gold-standard lexiconget_tp
Split Data into Training and Testing Sets Based on Indicesget_train_test_split
Guess and test modelguess_and_test
Kachergis, Grimmick, & Gureckis initial accuracy experiment datakachergis_initial_accuracy
Kachergis (2012) highlighting experiment datakachergis2012_highlighting
Kalman filter associative modelkalman_filter
Koehne, Trueswell, & Gleitman (2013) multiple-meaning word learningkoehne2013
Evaluate m-alternative forced choice testmafc_test
MINERVA2 episodic memory modelminerva2
Multi-sampling associative modelmulti_sampling
Constructor for xsl_model S3 classnew_xslFit new_xslMod xslMod xslMod-class
Create Animated Plot of Co-Occurrence Matrix from Training Trialsplot_training_trials
Predict referent selection for a single trial from an association matrixpredict_referent
Trueswell et al. 2013 propose-but-verify modelpropose_but_verify
Stevens et al. 2014 pursuit modelpursuit
REM (Retrieving Effectively from Memory) modelrem
Rescorla-Wagner (1972) error-driven associative modelrescorla_wagner
CHILDES/Rollins naturalistic word-learning corpus (Frank et al. 2009)rollins_corpus
Rational Speech Act pragmatic listener and speakerrsa_listener rsa_speaker
Show available datasets in the packageshow_datasets
Show available models in the packageshow_models
Softmax reinforcement learning modelsoftmax_rl
Suanda, Mugwanya, & Namy (2014) cross-situational learning in childrensuanda2014
Tilles and Fontanari (2013) reinforcement modeltilles
TODAM holographic reduced representation modeltodam
Kachergis 2012uncfam
Biased associative model with attention scaled to trial uncertaintyuncfam_attention
Biased associative model with learning by eliminationuncfam_elimination
Kachergis 2012 with a free familiarity exponentuncfam_gamma
General biased associative model (nests the uncfam family)uncfam_general
Predictive biased associative model (item-level prediction error)uncfam_predictive
Kachergis 2012uncfam_sampling
Update parameters of xslModupdate_params
Vlach & DeBrock (2017) spaced/massed repetition experiment datavlach_debrock2017
Cross-situational word learning experiment dataxsl_datasets
Fit XSL model using differential evolutionxsl_fit
Registry of datasets held out from xsl_datasetsxsl_holdout_datasets
Run XSL modelxsl_run
xslControl S3 classnew_xslControl xslControl xslControl-class
xslData S3 classnew_xslData xslData xslData-class
xslFit S3 classxslFit xslFit-class