SMS dit: Nanophotonics and Machine Learning