How jaswanthyamana/series-predictor works
This Flask application accepts numerical sequences and a target position through either its web interface or REST endpoint, then returns a prediction. Its hybrid predictor combines an LSTM with traditional pattern detection for arithmetic, geometric, and quadratic sequences. A separate training workflow generates and prepares examples, trains the LSTM, and saves model weights. The graph reflects the shown startup, prediction, and training relationships; the web template’s internal behavior was not sampled.
Main entry points: app.py Flask application · predict.py Hybrid predictor · train_model.py Model trainer · index.html Web interface
Components 10
Web interface
- Web interface
templates/index.html - Prediction API
app.py - Flask application
app.py
Prediction
- Hybrid predictor
predict.py - Pattern detection
predict.py - LSTM predictor
predict.py - Pre-trained weights
series_model.pth
Model training
- Model trainer
train_model.py - Training data preparation
train_model.py
Other components
- User
Connections 10
- User → Web interface: uses
README.md - User → Prediction API: submits series
README.md - Flask application → Web interface: renders
app.py - Prediction API → Flask application: routes request
app.py - Flask application → Hybrid predictor: calls predict
app.py - Hybrid predictor → Pattern detection: analyzes patterns
predict.py - Hybrid predictor → LSTM predictor: predicts with LSTM
predict.py - LSTM predictor → Pre-trained weights: loads weights
predict.py - Model trainer → Training data preparation: prepares examples
train_model.py - Model trainer → Pre-trained weights: saves weights
train_model.py