A Liquid-State Model of Variability Effects in Learning