Analyzing human feature learning as nonparametric Bayesian inference