Machine Learning Approaches for Knowledge Discovery in Nanophotonic Structures