A cognitive process that occurs when exposure to a stimulus affects subsequent behavior or responses.