Machine learning approach to transform scattering parameters to complex permittivities