[parameters, metrics] = frambi_estimate(data, agent, environment, options);
data | Structure describing model variables and behavioral data:
|
agent | Structure representing the FrAMBI agent. See the general description of FrAMBI for more details. See exp_barumerli2024 for an example. |
environment | Structure representing the FrAMBI environment. See the general description of FrAMBI for more details. See exp_barumerli2024 for an example. |
options | Structure representing the FrAMBI options. It needs to contain the structure estimate to control the estimation of parameters, with the following fields:
|
parameters | Structure with the estimated parameters and their names:
|
metrics | Structure with the statistics of the estimation:
|
frambi_estimate(..) estimates agent's parameters by running an optimizer which estimates optimal agent's parameters for the provided experiment data by maximizing the likelihood of the experiment data given the model specified by the agent and environment under the constraints set by the options. The function validates input structures, prepares the log-likelihood function, executes the optimization, and reports results along with boundary checks if required.
The calculation of the likelihood is handled by frambi_likelihood.
The optimizer is defined in options.estimate.optimizer. Currently only the Bayesian Adaptive Direct Search (BADS, Acerbi et al., 2017) is implemented. BADS is used for optimization, handling the constraints and transformations as defined in the agent's parameters.
L. Acerbi and W. J. Ma. Practical bayesian optimization for model fitting with bayesian adaptive direct search. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 1834--1844. Curran Associates, Inc., 2017. [ .pdf ]
R. Barumerli and P. Majdak. FrAMBI: A Software Framework for Auditory Modeling Based on Bayesian Inference. under review at Neuroinformatics, 2024.