Graphical User Interface¶
The BCI Toolbox GUI provides a complete no-code workflow for model fitting, simulation, visualization, and export. It is useful for rapid model checking, batch fitting across participant files, and communicating results with publication-ready figures.
Launch¶
import bcitoolbox as btb
btb.gui()
Main Workflows¶
- Model fitting
Import one or more CSV files, choose the fitting objective, select one or more decision strategies, estimate parameters, inspect plots, and export results.
- Model simulation
Enter parameter values and stimulus conditions to generate model-predicted response distributions. The simulation tools are useful for understanding how priors, likelihood variance, and causal-prior assumptions shape behavior.
Typical Analysis Workflow¶
Prepare a CSV file with one row per trial.
Open the GUI and select the relevant fitting module.
Import one or more datasets.
Set the simulation count. Use a smaller value, such as
1000, for a quick pilot run and a larger value, such as10000, for final fitting.Choose the objective function and decision strategies.
Select free parameters and review bounds.
Run fitting and inspect the output log.
Plot the fitted model against behavioral data.
Save figures, RDMs, predictions, or parameter summaries as needed.
Decision Strategies¶
aveModel averaging. The observer weights causal-structure-specific estimates by the posterior probability of a common cause.
selModel selection. The observer uses the estimate from the most likely causal structure.
matProbability matching. The observer samples a causal structure according to the posterior probability and responds from that structure.
Fitting Objectives¶
mllMinus log likelihood. Recommended for discrete response distributions when likelihood-based model comparison is desired.
mr2orminusr2Negative squared correlation between model and behavioral response proportions.
sseSum of squared errors between model and behavioral response proportions.
emdEarth mover’s distance, available for selected continuous workflows.
When to Use the 2D GUI¶
Use 2D GUI Tutorial when each trial contains two stimulus dimensions. For example, a flash-beep experiment may require both numerosity values and temporal offsets. The 2D GUI keeps these dimensions in one model instead of fitting separate one-dimensional analyses.