Natural Evolution Strategies (NES) toy example that optimizes a quadratic function
Source
- Source kind:
github-gist - URL: https://gist.github.com/karpathy/77fbb6a8dac5395f1b73e7a89300318d
- Discovery source: https://api.github.com/users/karpathy/gists?per_page=100
- License:
NOASSERTION - Distribution policy:
public-summary-local-archive-only - Public mirror status:
summary-only - Content hash:
2685c21443baa87dfca157081bc14975a5fe84fdd69a8c4402507654c9abcbc9 - First seen: 2026-05-15
- Last changed: 2026-05-15
Classification
- Primary category: Minimal implementations
- Corpus source note: 2026-05-15-karpathy-public-corpus
- Project taxonomy: karpathy-project-taxonomy
- Idea map: karpathy-idea-map
- Topic hub: karpathy-public-work
Summary
Public GitHub gist by Karpathy. Files: nes.py.
What This Teaches
- Use as a small public code or note artifact linked to Karpathy’s broader work.
- Treat licensing as unasserted unless a gist file explicitly declares one.
Why It Matters
Gists often capture compact ideas that do not deserve a full repository but can be important for tracing public thinking.
Gist Files
nes.py
Public Handling Notes
- EXTRACTED: This page records public metadata and a source-grounded summary.
- INFERRED: Full local preservation, when available, is for private/local use unless a license or explicit source policy makes public redistribution safe.
- Do not treat this page as permission to republish unlicensed source text or code wholesale.