How joshuammerced/livenbapredictionmodel works
LiveNBAPredictionModel is an NBA game and player-stat dashboard backed by a FastAPI service. The visible user workflow is dashboard load → /predictions request → NBA schedule/team lookup and response → game and player-stat display. The sampled service currently assigns a fixed 50% win probability; the README’s trained-model claim is not substantiated by the sampled runtime. The tree also contains a separate root-level backend with data-cleaning, ingestion, and database modules. Its relationships to the nested app are unclear, so those modules are represented without inferred call links.
Main entry points: data_mapper.py Database mapping · page.tsx Prediction dashboard · main.py Prediction endpoint · nba_api_client.py NBA data access
Components 14
Dashboard
- Prediction dashboard
LiveNBAPredictionModel/frontend/src/app/page.tsx
Prediction service
- Prediction endpoint
LiveNBAPredictionModel/backend/main.py
Data and modeling
- NBA data access
backend/nba_api_client.py - Schedule and player data
backend/datacleaining.py - Feature calculations
backend/features.py - Prediction model
backend/predictor.py - Data processing
backend/processor.py - Live data
backend/live_data.py - Data scraper
backend/scraper.py - Game and player schema
backend/init_db.py - Database mapping
backend/data_mapper.py - Database access
backend/database.py
Other components
- NBA fan
- NBA Stats API
Connections 8
- NBA fan → Prediction dashboard: views
LiveNBAPredictionModel/frontend/src/app/page.tsx - Prediction dashboard → Prediction endpoint: requests predictions
LiveNBAPredictionModel/frontend/src/app/page.tsx - Prediction endpoint → NBA Stats API: fetches schedule and teams
LiveNBAPredictionModel/backend/main.py - Prediction dashboard → NBA fan: renders game and player stats
LiveNBAPredictionModel/frontend/src/app/page.tsx - NBA data access → NBA Stats API: fetches game logs
backend/nba_api_client.py - Database mapping → NBA Stats API: fetches game and player logs
backend/data_mapper.py - Database mapping → Game and player schema: uses database configuration
backend/data_mapper.py - Database mapping → Database access: writes mapped records