A computational model of context dependent encodings during category learning