Go to home
Back
4
2

wine-quality-modelkit

:

wine-api

An ML-powered API that predicts wine quality using a Random Forest classifier.

Features

  • scikit-learn model training
  • FastAPI web service
  • Dockerized and Kubernetes-ready
  • GitOps deployment via Flux CD

API Endpoints

  • GET /health — Health check
  • POST /predict — Predict wine quality
  • POST /predict/batch — Predict for multiple samples

Example

curl -X POST http://localhost:8000/predict \
     -H "Content-Type: application/json" \
     -d '{
           "fixed_acidity": 7.4,
           "volatile_acidity": 0.7,
           "citric_acid": 0.0,
           "residual_sugar": 1.9,
           "chlorides": 0.076,
           "free_sulfur_dioxide": 11.0,
           "total_sulfur_dioxide": 34.0,
           "density": 0.9978,
           "pH": 3.51,
           "sulphates": 0.56,
           "alcohol": 9.4
         }'