Machine-learning-assisted insight into spin ice Dy2Ti2O7