Modular machine learning-based elastoplasticity: generalization in the context of limited data