Generalized few-shot transfer learning architecture for modeling the EDFA gain spectrum