record_participant_fit

dataFitting.record_participant_fit(participant, part_name, model_data, model_name, fitting_data, partModelVars, participantFits, fileNameGen=None, pickleData=False, saveFittingProgress=False, expData=None)[source]

Record the data relevant to the participant fitting

Parameters:
  • participant (dict) – The participant data
  • part_name (int or string) – The identifier for each participant
  • model_data (dict) – The data from the model
  • model_name (basestring) – The label given to the model
  • fitting_data (dict) – Dictionary of details of the different fits, including an ordered dictionary containing the parameter values tested, in the order they were tested, and a list of the fit qualities of these parameters
  • partModelVars (dict of string) – A dictionary of model settings whose values should vary from participant to participant based on the values found in the imported participant data files. The key is the label given in the participant data file, as a string, and the value is the associated label in the model, also as a string.
  • participantFits (defaultdict of lists) – A dictionary to be filled with the summary of the participant fits
  • fileNameGen (function or None) – Creates a new file with the name <handle> and the extension <extension>. It takes two string parameters: (handle, extension) and returns one fileName string. Default None
  • pickleData (bool, optional) – If true the data for each model, task and participant is recorded. Default is False
  • saveFittingProgress (bool, optional) – Specifies if the results from each iteration of the fitting process should be returned. Default False
  • expData (dict, optional) – The data from the task. Default None
Returns:

participantFits – A dictionary to be filled with the summary of the previous and current participant fits

Return type:

defaultdict of lists

See also

outputting.pickleLog()
records the picked data