What makes a small-world network? Leveraging machine learning for the robust prediction and classification of networks