Python implementation of the autograd engine and neural network library. Follows Karpathy's micrograd.
engine.py—Valueclass, forward ops, backward passnn.py—Neuron,Layer,MLPtest_against_torch.py— correctness tests verified against PyTorch
# setup (using uv)
uv venv
uv pip install -r python/requirements.txt
# run tests (from repo root)
python3 -m pytest -q
# run benchmarks (from repo root)
python3 -m python.benchmark