Machine learning powered ellipsometry