Lucas

Project — fastapi-wine-ai

A Machine Learning API Predicting Wine Quality and Composition

Two ML models, full CRUD, and retraining through the API.

Image 1
Image 2
Image 3
Image 4
Image 5
Image 6
Image 7
Image 8
Image 9
Image 10
Image 11
Image 12
1 / 12
01

In plain English

This API is built around a dataset of about 1,600 wines. You can browse and edit the wines, predict the quality of a wine from its chemical analysis, or do the reverse and get the typical composition of a wine of a given quality.

02

For the curious

Written in Python with FastAPI, organised in routers, with request authentication and full CRUD on the wines. Two RandomForestRegressor models handle the predictions: one estimates quality from chemical features, the other estimates the expected composition from a target quality. The dataset holds 1,597 entries, and the models can be retrained with a simple API call.

A little summary :

A small project, but a complete loop: data, training, serving and retraining, all behind one API. A good first step into putting machine learning models into production.