Machine Learning Approaches for Inverse Problems and Optimal Design in Electromagnetism | Synapse