Text this: Deep Learning Design for Loss Optimization in Metamaterials