Categorical Learning