算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
pygad【设计与创意】Route PyGAD genetic-algorithm optimization, benchmarks, visualization/reporting, and neural-model weight workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves PyGAD, the Python genetic-algorithm package from GeneticAlgorithmPython: creating or tuning pygad.GA runs, solving single- or multi-objective optimization problems, using bundled benchmark problems, plotting/reporting completed runs, or optimizing neural-network weights through PyGAD helpers.
Install the core package when PyGAD is not already available:
python -m pip install pygad
Then verify the import in the same environment that will run the optimization:
import pygad
print(pygad.__version__)
Core PyGAD usage needs numpy and cloudpickle. Optional plotting/reporting and deep-learning integrations need extra dependencies; see references/installation.md before installing heavy extras.
| If the user asks for... | Read this sub-skill |
|---|---|
Build or debug a pygad.GA fitness function, population, genes, operators, callbacks, stop criteria, save/load, single-objective optimization, or NSGA-II/NSGA-III custom multi-objective run | sub-skills/genetic-algorithm/SKILL.md |
Use built-in benchmark classes (Sphere, ZDT, DTLZ, Knapsack, TSP) or quality indicators (hypervolume, IGD, GD, spacing) | sub-skills/benchmarks/SKILL.md |
Summarize, plot, export PNGs, handle headless matplotlib, configure logging, or generate a PDF report from a completed GA run | sub-skills/results-and-visuals/SKILL.md |
Optimize dense NN/CNN/Keras/PyTorch model weights with PyGAD (pygad.nn, gann, cnn, gacnn, kerasga, torchga) | sub-skills/neural-networks/SKILL.md |
pygad.GA.initial_population, num_genes, gene_space, custom operators, batch fitness returns, or model-weight vector restoration.random_seed, small populations, and short generation counts before scaling to expensive objective functions.