The process by which an organism learns to produce a specific response in order to avoid or obtain an outcome is: