Contributions to machine learning: the unsupervised, the supervised, and the Bayesian