How lefevrk/oc-entrainez-votre-agent-rl works
Eagle-1 is a local DQN lunar-lander autopilot exposed through an API, a Streamlit flight viewer, and an interactive performance dashboard. Users request an action or a complete flight; the API runs the pilot and simulator, records episodes, and serves history, video, and statistics for the interfaces to display. The README documents notebook-based API use as well. Relationships are based on the supplied excerpts, SOURCE INDEX references, and README; unsampled page and API internals are not inferred beyond those sources.
Main entry points: api/main.py API endpoints · app/main.py Streamlit app · pilots.py DQN pilot · client.py HTTP client
Components 13
User interfaces
- Streamlit app
src/app/main.py - Flight viewer
src/app/pages/partie.py - Performance dashboard
src/app/pages/tableau_de_bord.py - HTTP client
src/rl_pilot/client.py
API service
- API endpoints
src/api/main.py - Request and response schemas
src/api/schemas.py
Flight runtime
- Runtime configuration
src/rl_pilot/config.py - DQN pilot
src/rl_pilot/pilots.py - Trained DQN model
models/dqn_lunarlander_best.zip - LunarLander simulation
src/rl_pilot/simulation.py
History and analytics
- Run history store
src/rl_pilot/storage.py - Run statistics
src/rl_pilot/stats.py
Other components
- User / notebook
Connections 19
- User / notebook → Streamlit app: uses
README.md - User / notebook → API endpoints: requests flights
README.md - Streamlit app → Flight viewer: routes to
src/app/main.py - Streamlit app → Performance dashboard: routes to
src/app/main.py - Streamlit app → HTTP client: checks service
src/app/main.py - Flight viewer → HTTP client: requests and reads
src/app/pages/partie.py - Performance dashboard → HTTP client: requests runs and stats
src/app/pages/tableau_de_bord.py - HTTP client → API endpoints: calls HTTP endpoints
src/rl_pilot/client.py - API endpoints → Request and response schemas: validates and formats
src/api/main.py - API endpoints → Runtime configuration: gets runtime paths
src/api/main.py - API endpoints → DQN pilot: loads and queries
src/api/main.py - API endpoints → LunarLander simulation: runs episodes
src/api/main.py - API endpoints → Run history store: records and reads
src/api/main.py - API endpoints → Run statistics: summarizes history
src/api/main.py - DQN pilot → Runtime configuration: gets model path
src/rl_pilot/pilots.py - DQN pilot → Trained DQN model: loads weights
src/rl_pilot/pilots.py - LunarLander simulation → DQN pilot: requests decisions
src/rl_pilot/simulation.py - Run history store → LunarLander simulation: stores episode data
src/rl_pilot/storage.py - Run statistics → LunarLander simulation: uses outcome thresholds
src/rl_pilot/stats.py