Applications of machine learning to some statistical inference problems