How kjaved0/swifttd works
SwiftTD is a Python-accessible temporal-difference learning library with dense, sparse-binary, and sparse-valued linear-function-approximation variants. The user supplies features and a reward to step; the selected implementation updates its learning state and returns a value prediction. Python exports the native classes through a pybind11 extension. The graph focuses on runtime behavior; implementation details are limited to the shown excerpts, and no external service or persistent store is documented.
Main entry points: pybind.cpp Native bindings · __init__.py Python package API · SwiftTD.cpp Dense SwiftTD · SwiftTD.h C++ declarations
Components 8
Other components
- Python caller
- Python package API
src/swifttd/__init__.py - Package version
src/swifttd/_version.py - Native bindings
src/cpp/pybind.cpp - C++ declarations
src/cpp/SwiftTD.h - Dense SwiftTD
src/cpp/SwiftTD.cpp - Binary sparse SwiftTD
src/cpp/SwiftTD.cpp - Valued sparse SwiftTD
src/cpp/SwiftTD.cpp
Connections 11
- Python caller → Python package API: uses
README.md - Python package API → Native bindings: imports classes
src/swifttd/__init__.py - Python package API → Package version: imports version
src/swifttd/__init__.py - Native bindings → C++ declarations: binds classes
src/cpp/pybind.cpp - Dense SwiftTD → C++ declarations: implements declarations
src/cpp/SwiftTD.cpp - Native bindings → Dense SwiftTD: dispatches calls
src/cpp/pybind.cpp - Native bindings → Binary sparse SwiftTD: dispatches calls
src/cpp/pybind.cpp - Native bindings → Valued sparse SwiftTD: dispatches calls
src/cpp/pybind.cpp - Dense SwiftTD → Python caller: returns prediction
README.md - Binary sparse SwiftTD → Python caller: returns prediction
README.md - Valued sparse SwiftTD → Python caller: returns prediction
README.md