Skip to content

📝 Add README visual of diffusion evolution on Rastrigin#12

Merged
dariocazzani merged 1 commit into
mainfrom
feat/readme-visual
May 3, 2026
Merged

📝 Add README visual of diffusion evolution on Rastrigin#12
dariocazzani merged 1 commit into
mainfrom
feat/readme-visual

Conversation

@dariocazzani
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a hero visual to the README showing diffusion evolution in action on the Rastrigin landscape — a 4-panel static PNG of the trajectory from pure noise to multi-peak convergence, plus an animated GIF. The figure is fully reproducible from a seeded script (scripts/generate_readme_figure.py) committed alongside the generated assets.

Details

  • Add scripts/generate_readme_figure.py with seeded Rastrigin run and matplotlib rendering. Outputs 4-panel static figure and animated GIF.
  • Tune fitness.mapping=EXPONENTIAL with temperature=2.0 and NormalType.IDENTITY, sigma_m=0.5, and a wider initial noise scale so the final population visibly clusters across multiple Rastrigin peaks instead of collapsing to a single mode.
  • Embed the static figure and link the GIF from the README under "What Is This?".
  • Whitelist docs/images/*.png and *.gif in .gitignore so the README assets are tracked while stray plot output stays ignored.
  • Note the addition in CHANGELOG.md under [Unreleased].

Reproducing the figures

uv sync --extra dev --extra examples
uv run scripts/generate_readme_figure.py

Outputs to docs/images/denoising-trajectory.{png,gif}.

- Add scripts/generate_readme_figure.py producing a 4-panel static
  snapshot plus animated GIF of a Rastrigin run (seeded, rerunnable).
- Tune fitness mapping/temperature/sigma_m so the final population
  spreads across multiple Rastrigin peaks instead of collapsing to
  the global max alone, highlighting the algorithm's multi-modal
  behavior.
- Embed the static figure and link the GIF from the README's "What
  Is This?" section.
- Whitelist docs/images/*.png and *.gif in .gitignore so README
  assets are tracked while stray plots remain ignored.
- Note the addition in CHANGELOG under [Unreleased].
@dariocazzani dariocazzani merged commit 08ada14 into main May 3, 2026
6 checks passed
@dariocazzani dariocazzani deleted the feat/readme-visual branch May 3, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant