Assessing learning processes with a gain-loss model