In this recipe, we will predict the quality of wine based on the chemical properties of wines grown. The code uses a wine dataset, which contains a DataFrame with 177 rows and 13 columns; the first column contains the class labels. This data is obtained from the chemical analyses of wines grown in the same region in Italy (Piemonte) but derived from three different cultivars—namely, the Nebbiolo, Barberas, and Grignolino grapes. The wine from the Nebbiolo grape is called Barolo.
Predicting the quality of wine
Getting ready
The data consists of the amounts of several constituents found in each of the three types of wines, as well as some spectroscopic variables. The attributes are as follows:
- Alcohol
- Malic acid ...