New machine learning paradigms for knowledge discovery and inverse design of photonic nanostructures | Synapse