cpm.utils#

Helpers to prepare data for the models in cpm.applications.

Data conversion#

data.convert_to_RLRW

Convert a pandas DataFrame into a format compatible with the RLRW wrapper.

data.convert_to_PTSM

Convert a pandas DataFrame into a format compatible with the PTSM wrapper.

data.combine_lists

This is an internally used utility function to combine multiple lists into a single list of lists, which can be used for data manipulation, such as in the convert_to_RLRW function.

Metacognition#

metad.count_trials

Convert raw behavioral data to nR_S1 and nR_S2 response count.

metad.bin_ratings

Convert from continuous to discrete ratings.