Machine Learning as an Accurate Predictor for Percolation Threshold of Diverse Networks