Machine learning for the study of gene regulation and complex traits