How riteshsinghbharti/fifa-world-cup-ai-predictor works
This is a Flask web application for predicting FIFA World Cup 2026 match outcomes. Users enter a matchup, the application builds model-compatible features and returns outcome probabilities; related product areas include fixtures, tournament brackets, team statistics, prediction history, and account management. The sampled code shows the application importing its configuration, authentication/database layer, and feature builder, while the README documents the broader user-facing capabilities. Several routes and training stages are only partially sampled, so their links are marked unverified rather than asserted as observed calls.
Main entry points: app.py Flask routes · feature_builder.py Feature construction · user.py Authentication · new_train.py Model training
Components 16
Web application
- Flask routes
app.py - App configuration
config.py - Match fixtures
app.py - Tournament bracket
app.py - Team statistics
app.py
Prediction system
- Match prediction
app.py - Feature construction
feature_builder.py - Prediction model
Accounts and persistence
- Prediction history
app.py - Authentication
instance/user.py - User and prediction records
instance/user.py - Login history
instance/user.py
Model preparation
- Match results data
results.csv - Model training
new_train.py - Model metadata
fifa_metadata.pkl
Other components
- Visitor
Connections 17
- Visitor → Flask routes: uses
README.md - Flask routes → App configuration: configures
app.py - Flask routes → Authentication: imports
app.py - Flask routes → Match prediction: routes
app.py - Match prediction → Feature construction: builds features
app.py - Feature construction → Prediction model: predicts with
feature_builder.py - Flask routes → Match fixtures: serves
app.py - Flask routes → Tournament bracket: builds
app.py - Tournament bracket → Match prediction: requests outcomes
app.py - Flask routes → Team statistics: serves
app.py - Flask routes → Prediction history: serves
app.py - Flask routes → User and prediction records: reads and writes
- Authentication → User and prediction records: persists accounts
instance/user.py - Authentication → Login history: records logins
instance/user.py - Model training → Match results data: loads
new_train.py - Model training → Model metadata: writes
- Feature construction → Model metadata: uses metadata
feature_builder.py