Machine Learning Prediction for Bandgaps of Inorganic Materials