wine_quality
Stay organized with collections
Save and categorize content based on your preferences.
Two datasets were created, using red and white wine samples. The inputs include
objective tests (e.g. PH values) and the output is based on sensory data (median
of at least 3 evaluations made by wine experts). Each expert graded the wine
quality between 0 (very bad) and 10 (very excellent). Several data mining
methods were applied to model these datasets under a regression approach. The
support vector machine model achieved the best results. Several metrics were
computed: MAD, confusion matrix for a fixed error tolerance (T), etc. Also, we
plot the relative importances of the input variables (as measured by a
sensitivity analysis procedure).
The two datasets are related to red and white variants of the Portuguese "Vinho
Verde" wine. For more details, consult: http://www.vinhoverde.pt/en/ or the
reference [Cortez et al., 2009]. Due to privacy and logistic issues, only
physicochemical (inputs) and sensory (the output) variables are available (e.g.
there is no data about grape types, wine brand, wine selling price, etc.).
Number of Instances: red wine - 1599; white wine - 4898
Input variables (based on physicochemical tests):
- fixed acidity
- volatile acidity
- citric acid
- residual sugar
- chlorides
- free sulfur dioxide
- total sulfur dioxide
- density
- pH
- sulphates
- alcohol
Output variable (based on sensory data):
- quality (score between 0 and 10)
FeaturesDict({
'features': FeaturesDict({
'alcohol': float32,
'chlorides': float32,
'citric acid': float32,
'density': float32,
'fixed acidity': float32,
'free sulfur dioxide': float32,
'pH': float32,
'residual sugar': float32,
'sulphates': float64,
'total sulfur dioxide': float32,
'volatile acidity': float32,
}),
'quality': int32,
})
Feature |
Class |
Shape |
Dtype |
Description |
|
FeaturesDict |
|
|
|
features |
FeaturesDict |
|
|
|
features/alcohol |
Tensor |
|
float32 |
|
features/chlorides |
Tensor |
|
float32 |
|
features/citric acid |
Tensor |
|
float32 |
|
features/density |
Tensor |
|
float32 |
|
features/fixed acidity |
Tensor |
|
float32 |
|
features/free sulfur dioxide |
Tensor |
|
float32 |
|
features/pH |
Tensor |
|
float32 |
|
features/residual sugar |
Tensor |
|
float32 |
|
features/sulphates |
Tensor |
|
float64 |
|
features/total sulfur dioxide |
Tensor |
|
float32 |
|
features/volatile acidity |
Tensor |
|
float32 |
|
quality |
Tensor |
|
int32 |
|
@ONLINE {cortezpaulo;cerdeiraantonio;almeidafernando;matostelmo;reisjose1999,
author = "Cortez, Paulo; Cerdeira, Antonio; Almeida,Fernando; Matos, Telmo; Reis, Jose",
title = "Modeling wine preferences by data mining from physicochemical properties.",
year = "2009",
url = "https://archive.ics.uci.edu/ml/datasets/wine+quality"
}
wine_quality/white (default config)
Split |
Examples |
'train' |
4,898 |
wine_quality/red
Split |
Examples |
'train' |
1,599 |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-11-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-23 UTC."],[],[],null,["# wine_quality\n\n\u003cbr /\u003e\n\n- **Description**:\n\nTwo datasets were created, using red and white wine samples. The inputs include\nobjective tests (e.g. PH values) and the output is based on sensory data (median\nof at least 3 evaluations made by wine experts). Each expert graded the wine\nquality between 0 (very bad) and 10 (very excellent). Several data mining\nmethods were applied to model these datasets under a regression approach. The\nsupport vector machine model achieved the best results. Several metrics were\ncomputed: MAD, confusion matrix for a fixed error tolerance (T), etc. Also, we\nplot the relative importances of the input variables (as measured by a\nsensitivity analysis procedure).\n\nThe two datasets are related to red and white variants of the Portuguese \"Vinho\nVerde\" wine. For more details, consult: \u003chttp://www.vinhoverde.pt/en/\u003e or the\nreference \\[Cortez et al., 2009\\]. Due to privacy and logistic issues, only\nphysicochemical (inputs) and sensory (the output) variables are available (e.g.\nthere is no data about grape types, wine brand, wine selling price, etc.).\n\nNumber of Instances: red wine - 1599; white wine - 4898\n\nInput variables (based on physicochemical tests):\n\n1. fixed acidity\n2. volatile acidity\n3. citric acid\n4. residual sugar\n5. chlorides\n6. free sulfur dioxide\n7. total sulfur dioxide\n8. density\n9. pH\n10. sulphates\n11. alcohol\n\nOutput variable (based on sensory data):\n\n1. quality (score between 0 and 10)\n\n- **Homepage** :\n \u003chttps://archive.ics.uci.edu/ml/datasets/wine+quality\u003e\n\n- **Source code** :\n [`tfds.structured.wine_quality.WineQuality`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/structured/wine_quality/wine_quality.py)\n\n- **Versions**:\n\n - **`1.0.0`** (default): No release notes.\n- **Auto-cached**\n ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):\n Yes\n\n- **Feature structure**:\n\n FeaturesDict({\n 'features': FeaturesDict({\n 'alcohol': float32,\n 'chlorides': float32,\n 'citric acid': float32,\n 'density': float32,\n 'fixed acidity': float32,\n 'free sulfur dioxide': float32,\n 'pH': float32,\n 'residual sugar': float32,\n 'sulphates': float64,\n 'total sulfur dioxide': float32,\n 'volatile acidity': float32,\n }),\n 'quality': int32,\n })\n\n- **Feature documentation**:\n\n| Feature | Class | Shape | Dtype | Description |\n|-------------------------------|--------------|-------|---------|-------------|\n| | FeaturesDict | | | |\n| features | FeaturesDict | | | |\n| features/alcohol | Tensor | | float32 | |\n| features/chlorides | Tensor | | float32 | |\n| features/citric acid | Tensor | | float32 | |\n| features/density | Tensor | | float32 | |\n| features/fixed acidity | Tensor | | float32 | |\n| features/free sulfur dioxide | Tensor | | float32 | |\n| features/pH | Tensor | | float32 | |\n| features/residual sugar | Tensor | | float32 | |\n| features/sulphates | Tensor | | float64 | |\n| features/total sulfur dioxide | Tensor | | float32 | |\n| features/volatile acidity | Tensor | | float32 | |\n| quality | Tensor | | int32 | |\n\n- **Supervised keys** (See\n [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):\n `('features', 'quality')`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n Not supported.\n\n- **Citation**:\n\n @ONLINE {cortezpaulo;cerdeiraantonio;almeidafernando;matostelmo;reisjose1999,\n author = \"Cortez, Paulo; Cerdeira, Antonio; Almeida,Fernando; Matos, Telmo; Reis, Jose\",\n title = \"Modeling wine preferences by data mining from physicochemical properties.\",\n year = \"2009\",\n url = \"https://archive.ics.uci.edu/ml/datasets/wine+quality\"\n }\n\nwine_quality/white (default config)\n-----------------------------------\n\n- **Config description**: White Wine\n\n- **Download size** : `258.23 KiB`\n\n- **Dataset size** : `1.87 MiB`\n\n- **Splits**:\n\n| Split | Examples |\n|-----------|----------|\n| `'train'` | 4,898 |\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\nwine_quality/red\n----------------\n\n- **Config description**: Red Wine\n\n- **Download size** : `82.23 KiB`\n\n- **Dataset size** : `626.17 KiB`\n\n- **Splits**:\n\n| Split | Examples |\n|-----------|----------|\n| `'train'` | 1,599 |\n\n- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples..."]]