How ta-wiah/aviator_predictor works
Purpose and entry point
This is a standalone Python desktop predictor for 1Win Aviator multipliers. It collects historical/current game data, trains an LSTM model, and displays ongoing predictions in a GUI. The executable entry point is aviator_predictor.py.
Application orchestration
aviator_predictor.py contains the application lifecycle and the README-named functional stages: history retrieval, current-state polling, model training, real-time prediction, and GUI startup. It is the primary integration boundary between network I/O, ML inference, and user interaction.
External data acquisition
Historical multiplier data and live Aviator state are obtained over HTTP through the requests dependency, represented by fetch_history() and fetch_current_state() in aviator_predictor.py. The upstream 1Win Aviator service is an external, runtime-dependent boundary; failures, response changes, or unavailable live data affect predictions directly.
ML training and prediction pipeline
The predictor uses TensorFlow/Keras LSTM neural-network capabilities to learn from prior multiplier sequences. train_model() in aviator_predictor.py prepares/trains the model, while real_time_prediction() applies the trained model to newly observed state. Numerical/tabular processing is supplied by NumPy and pandas.
Real-time control flow
The expected flow is: start application → fetch historical rounds → train or initialize the LSTM → open GUI → repeatedly fetch current multiplier state → generate/display the next-multiplier prediction. The GUI loop and live polling must coexist without blocking user interaction; both are coordinated from aviator_predictor.py.
Runtime and UI boundary
The project targets 64-bit Python 3.7–3.10. Its GUI requires Tk support on Ubuntu (python3-tk), making the desktop environment a material runtime dependency. Python package dependencies are declared in requirements.txt; the main runtime implementation remains aviator_predictor.py.
Delivery and automation
The repository is intentionally compact, with no separate service, API, or persistence layer visible. CI packaging/environment validation is configured at .github/workflows/python-package-conda.yml, but production use is launched locally via python aviator_predictor.py.
Main entry points: aviator_predictor.py Application entry · requirements.txt Package dependencies · python-package-conda.yml CI environment validation
Components 13
Desktop Predictor
Local application lifecycle, data flow, and UI.
- Application entry · Coordinates startup, polling, prediction, and GUI lifecycle.
aviator_predictor.py - History retrieval · Retrieves prior multiplier rounds over HTTP.
aviator_predictor.py - Live-state polling · Polls the current Aviator multiplier state.
aviator_predictor.py - LSTM training · Prepares historical sequences and trains the model.
aviator_predictor.py - Real-time prediction · Applies the trained model to fresh observed state.
aviator_predictor.py - Prediction GUI · Displays ongoing next-multiplier predictions without blocking polling.
aviator_predictor.py
Runtime Dependencies
External services and local execution requirements.
- 1Win Aviator service · Supplies historical and live game data.
- HTTP client
- LSTM framework
- Data processing
- Python desktop runtime · Requires 64-bit Python and Tk support for the local GUI.
Delivery
Dependency declaration and CI validation.
- Package dependencies
requirements.txt - CI environment validation
.github/workflows/python-package-conda.yml
Connections 19
- Application entry → History retrieval: starts
- Application entry → LSTM training: trains or initializes
- Application entry → Prediction GUI: opens
- Application entry → Live-state polling: schedules polling
- History retrieval → HTTP client: uses
- Live-state polling → HTTP client: uses
- HTTP client → 1Win Aviator service: HTTP requests
- History retrieval → LSTM training: historical rounds
- Data processing → LSTM training: sequence preparation
- LSTM training → LSTM framework: builds and trains
- LSTM training → Real-time prediction: trained model
- Live-state polling → Real-time prediction: new state
- Real-time prediction → LSTM framework: runs inference
- Real-time prediction → Prediction GUI: prediction result
- Python desktop runtime → Application entry: executes locally
- Package dependencies → HTTP client: declares
- Package dependencies → LSTM framework: declares
- Package dependencies → Data processing: declares
- CI environment validation → Package dependencies: validates environment