How brandoncho369/flybench works
flybench is a benchmark for testing whole-brain fruit-fly connectome simulations against cited reflex behaviours. A user selects a connectome and model configuration; the CLI runs benchmark tasks, simulates stimuli, scores observed responses, and reports results. Major extensions include shuffled-wiring controls, a FlyVis visual front end, and an embodied closed loop with a FlyGym body. The graph reflects documented capabilities and indexed references; unsampled modules are included only where the tree or README establishes their role, so some internal links are omitted.
Main entry points: cli.py CLI · bench.py Benchmark runner · sim.py LIF simulator · connectome.py Connectome data
Components 22
Benchmark entry
- CLI
flybench/cli.py - Reflex tasks
tasks
Connectome simulation
- Connectome data
flybench/connectome.py - Toy connectome
flybench/toy.py - NeuPrint fetch
flybench/fetch_neuprint.py - LIF simulator
flybench/sim.py - Terminal LIF
flybench/models/terminal_lif.py - Adaptive LIF
flybench/models/adaptive_lif.py - Simulator adapter
flybench/adapter.py
Stimuli and embodiment
- FlyVis frontend
flybench/frontends/flyvis_frontend.py - Embodied vision
flybench/embodied/vision.py - FlyGym body
flybench/embodied/flygym_body.py - Closed loop
flybench/embodied/closed_loop.py
Assessment and results
- Wiring controls
flybench/controls.py - Benchmark runner
flybench/bench.py - Scoring
flybench/scoring.py - Result reports
flybench/evaluate.py - Result audit
flybench/audit.py - Result validation
flybench/validate.py
Submission lifecycle
- Submission evaluation
flybench/evaluate.py - Task lifecycle
flybench/lifecycle.py
Other components
- Benchmark user
Connections 29
- Benchmark user → CLI: invokes
README.md - CLI → Benchmark runner: runs
README.md - CLI → Connectome data: selects
flybench/cli.py - CLI → NeuPrint fetch: fetches
flybench/cli.py - CLI → Wiring controls: runs controls
flybench/cli.py - CLI → FlyVis frontend: configures
flybench/cli.py - CLI → Result audit: invokes
flybench/cli.py - CLI → Submission evaluation: evaluates
flybench/cli.py - CLI → Result validation: validates
flybench/cli.py - CLI → Task lifecycle: manages
flybench/cli.py - Connectome data → Toy connectome: builds toy
flybench/connectome.py - LIF simulator → Connectome data: reads
flybench/sim.py - Terminal LIF → LIF simulator: extends
flybench/models/terminal_lif.py - Adaptive LIF → LIF simulator: extends
flybench/models/adaptive_lif.py - Simulator adapter → LIF simulator: registers
flybench/adapter.py - Benchmark runner → LIF simulator: simulates tasks
README.md - Benchmark runner → Reflex tasks: runs
README.md - Benchmark runner → Scoring: scores
README.md - Benchmark runner → Wiring controls: tests controls
README.md - FlyVis frontend → Connectome data: drives cell types
flybench/frontends/flyvis_frontend.py - Embodied vision → FlyVis frontend: uses
flybench/embodied/vision.py - Closed loop → Embodied vision: samples eyes
flybench/embodied/closed_loop.py - Closed loop → FlyGym body: steps body
flybench/embodied/closed_loop.py - Closed loop → LIF simulator: steps brain
flybench/embodied/closed_loop.py - Benchmark runner → Result reports: produces results
README.md - Submission evaluation → Benchmark runner: evaluates config
flybench/evaluate.py - Submission evaluation → Result reports: writes report
flybench/evaluate.py - Result audit → Benchmark runner: compares runs
flybench/audit.py - Result validation → Result reports: validates
flybench/validate.py