Gravar-mail: Genome-wide prediction of discrete traits using bayesian regressions and machine learning