Characterization of nanoscale structural heterogeneity in metallic glasses: A machine learning study