Bayesian Feature Weighting for Unsupervised Learning, with Application to Object Recognition