Gutiérrez Avilés, DavidJiménez Navarro, Manuel JesúsTorres, José FranciscoMartínez-Álvarez, Francisco2025-07-032025-07-032025-07Gutiérrez Avilés, D., Jiménez Navarro, M.J., Torres, J.F. y Martínez-Álvarez, F. (2025). MetaGen: A framework for metaheuristic development and hyperparameter optimization in machine and deep learning. Neurocomputing, 637, 130046. https://doi.org/10.1016/j.neucom.2025.130046.0925-23121872-8286https://hdl.handle.net/11441/174931Hyperparameter optimization is a pivotal step in enhancing model performance within machine learning. Traditionally, this challenge is addressed through metaheuristics, which efficiently explore large search spaces to uncover optimal solutions. However, implementing these techniques can be complex without adequate development tools, which is the primary focus of this paper. Hence, we introduce MetaGen, a novel Python package designed to provide a comprehensive framework for developing and evaluating metaheuristic algorithms. MetaGen follows best practices in Python design, ensuring minimalistic code implementation, intuitive comprehension, and full flexibility in solution representation. The package defines two distinct user roles: Developers, responsible for algorithm implementation for hyperparameter optimization, and Solvers, who leverage pre-implemented metaheuristics to address optimization problems. Beyond algorithm implementation, MetaGen facilitates benchmarking through built-in test functions, ensuring standardized performance comparisons. It also provides automated reporting and visualization tools to analyze optimization progress and outcomes effectively. Furthermore, its modular design allows distribution and integration into existing machine learning workflows. Several illustrative use cases are presented to demonstrate its adaptability and efficacy. The package, along with code, a user manual, and supplementary materials, is available at: https://github.com/Data-Science-Big-Data-Research-Lab/MetaGen.application/pdf13 p.engAttribution 4.0 Internationalhttp://creativecommons.org/licenses/by/4.0/MetaheuristicsHyperparameter optimizationMachine learningDeep learningPythonMetaGen: A framework for metaheuristic development and hyperparameter optimization in machine and deep learninginfo:eu-repo/semantics/articleinfo:eu-repo/semantics/openAccesshttps://doi.org/10.1016/j.neucom.2025.130046