Forecast as a Service
Overview¶
- This project implements a modular Forecast-as-a-Service system
- It includes:
- A backend API for receiving forecast requests and returning predictions
- A frontend interface for visualizing forecasts and interacting with users
Directory Layout¶
api/: contains the backend forecast APIapi/main.py: FastAPI app definition and router registrationapi/routes.py: defines API endpoints and their handlersapi/schemas.py: defines request and response schemas using PydanticForecastRequest: schema for input dataForecastResponse: schema for forecast results
api/services.py: core forecasting logic
frontend/: contains the user-facing interfacefrontend/app.py: Dash app initialization and executionfrontend/layout.py: defines the structure of the UIfrontend/callbacks.py: implements interactivity via Dash callbacksfrontend/config.py: contains configuration variables (e.g., API endpoint URL)frontend/ui_components.py: contains reusable UI componentsfrontend/data_utils.py: helper functions for data parsing and formatting