Skip to content
Back to skills

Results And Visuals

ASecurity

"Summarize, plot, export, and debug completed PyGAD runs using

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
businessgoapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill results-and-visuals --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Results And Visuals?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Results And Visuals
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-results-and-visuals/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-results-and-visuals)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: results-and-visuals
description: "Summarize, plot, export, and debug completed PyGAD runs using
  summary, logger, plot_* methods, and PDF reports."
metadata:
  disco-role: operating
disable-model-invocation: true
license: BSD 3-Clause
---

# results-and-visuals

Use this sub-skill when the task is to inspect, visualize, or export a completed `pygad.GA` run.

## Route elsewhere

- Tuning the optimizer, fitness, selection, crossover, mutation, callbacks, or save/load state: use `genetic-algorithm`.
- Built-in benchmarks and quality indicators: use `benchmarks`.
- GA-based neural-network adapters: use `neural-networks`.

## Operating flow

1. Confirm the run completed and that the data you need was saved:
   - `ga.generations_completed >= 1`
   - `save_solutions=True` for history-based plots
   - `save_best_solutions=True` for `plot_genes(solutions="best")`
2. Switch plotting to a headless backend before creating figures in scripts or CI.
3. Use `ga.summary()` to inspect the lifecycle table and the configured logger. Pass a custom `logging.Logger` through `pygad.GA(..., logger=...)` when you want file output or structured logs.
4. Call the needed `plot_*()` method and save it via `save_dir` when you want a file artifact.
5. Call `ga.generate_report()` when you want one PDF that bundles the run summary and applicable plots.

## Reference map

- API signatures, defaults, return values, and preconditions: [references/api-reference.md](references/api-reference.md)
- Reusable workflows for summaries, headless plots, and PDF exports: [references/workflows.md](references/workflows.md)
- Common failure modes and fixes: [references/troubleshooting.md](references/troubleshooting.md)

## Bundled safe scripts

- [scripts/plot_report_smoke.py](scripts/plot_report_smoke.py): deterministic headless smoke that runs a small single-objective and multi-objective GA, prints a summary through a custom logger, writes temporary PNGs, and exports a temporary PDF report.

## Safety notes

- Plot methods need `matplotlib`; `generate_report()` needs both `matplotlib` and `reportlab`.
- `plot_new_solution_rate()`, `plot_fitness_band()`, `plot_population_diversity()`, `plot_non_dominated_hypervolume()`, and `plot_pareto_front_evolution()` require `save_solutions=True`.
- `plot_genes(solutions="best")` requires `save_best_solutions=True`; `plot_genes(solutions="all")` requires `save_solutions=True`.
- Pareto-front curve/evolution plots require a completed multi-objective run; the 2D/3D curve only supports 2 or 3 objectives.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md6 KB
  • references/troubleshooting.md3.2 KB
  • references/workflows.md4.3 KB
  • scripts/plot_report_smoke.py6.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.