A companion service that provides time-series forecasting for Tractor-Beam using Facebook's Prophet library.
- Demand forecasting with external regressors (MTI, inflation)
- Supplier performance prediction (quality ratings and lead time reliability)
- Visualization of forecasts with confidence intervals
- Clone the repository
- Set up a Python virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
Start the service:
python app.py
The service will try to run on port 5001, with fallbacks to 5002 and 5000 if needed.
POST /predict/demand
- Generate demand forecastsPOST /predict/supplier-performance
- Predict supplier performance metrics
See the API documentation for request/response formats and examples.