A sales prediction model made by Akash Halder
242
AdSpectra API is a FastAPI-powered ML inference service that predicts sales based on advertising budgets (TV, Radio, Newspaper). It is containerized with Docker and ready to deploy anywhere.
docker pull akash26052005/adspectra-api:latest
docker run -d -p 8000:8000 akash26052005/adspectra-api:latest
-d → run in detached mode-p 8000:8000 → map container port 8000 to host port 8000/predict{
"TV_Ad_Budget": 230.1,
"Radio_Ad_Budget": 37.8,
"Newspaper_Ad_Budget": 69.2
}
{
"success": true,
"input": {
"TV Ad Budget": 230.1,
"Radio Ad Budget": 37.8,
"Newspaper Ad Budget": 69.2
},
"prediction": {
"prediction": 21.98799999999997,
"confidence_r2": 98.13,
"mae": 62.07,
"mse": 59,
"rmse": 76.9
}
}
/analyticsProvides global model performance metrics:
{
"success": true,
"metrics": {
"model_accuracy": 98.13,
"mae": 62.07,
"mse": 59,
"rmse": 76.9
}
}
# Build the image
docker build -t adspectra-api .
# Tag the image for Docker Hub
docker tag adspectra-api akash26052005/adspectra-api:latest
# Push to Docker Hub
docker push akash26052005/adspectra-api:latest
This project is open-source and available under the MIT License.
Content type
Image
Digest
sha256:f404724df…
Size
145.7 MB
Last updated
about 1 year ago
docker pull akash26052005/adspectra-api