arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.06158cs.NEcs.CVcs.LGmath.OC
收藏

PyGAD:一个直观的遗传算法Python库

PyGAD: An Intuitive Genetic Algorithm Python Library

University of Ottawa(渥太华大学)

Ahmed Fawzy Gad

摘要:

本文介绍了PyGAD,一个开源的易于使用的Python库,用于构建遗传算法。PyGAD支持广泛的参数,使用户能够控制其生存周期中的所有内容。这包括但不限于群体、基因值范围、基因数据类型、亲本选择、交叉和突变。PyGAD被设计为一个通用优化库,允许用户自定义适应函数。它的使用包括3个主要步骤:构建适应度函数,创建pygad.GA类的实例,以及调用pygad.GA.run()方法。该库支持训练使用PyGAD本身或Keras和PyTorch等框架创建的深度学习模型。鉴于其稳态,PyGAD也在积极开发中,以响应用户在GitHub https://github.com/ahmedfgad/GeneticAlgorithmPython上请求的功能和增强。PyGAD附带文档https://pygad.readthedocs.io,以获取更多细节和示例。

英文摘要:

This paper introduces PyGAD, an open-source easy-to-use Python library for building the genetic algorithm. PyGAD supports a wide range of parameters to give the user control over everything in its life cycle. This includes, but is not limited to, population, gene value range, gene data type, parent selection, crossover, and mutation. PyGAD is designed as a general-purpose optimization library that allows the user to customize the fitness function. Its usage consists of 3 main steps: build the fitness function, create an instance of the pygad.GA class, and calling the pygad.GA.run() method. The library supports training deep learning models created either with PyGAD itself or with frameworks like Keras and PyTorch. Given its stable state, PyGAD is also in active development to respond to the user's requested features and enhancement received on GitHub https://github.com/ahmedfgad/GeneticAlgorithmPython. PyGAD comes with documentation https://pygad.readthedocs.io for further details and examples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑