How anirban071/ml-model-pipeline works
This repository provides a classification API and a separate script for training its model. A client submits four numeric features to /predict; the API loads the serialized classifier at startup, predicts a class, and returns it. The training script generates synthetic data, fits a random forest, and saves the model to model.pkl. The README is empty, so the map reflects only the behavior shown in the source excerpts.
Main entry points: app.py Prediction endpoint · model.pkl Serialized model · train.py Data and model trainer
Components 5
Prediction API
- Prediction endpoint
app.py - Loaded classifier
app.py
Model training
- Data and model trainer
train.py
Other components
- API client
- Serialized model
model.pkl
Connections 4
- API client → Prediction endpoint: submits features
app.py - Prediction endpoint → Loaded classifier: predicts with
app.py - Data and model trainer → Serialized model: saves model
train.py - Serialized model → Loaded classifier: loaded at startup
app.py