This GitHub project aims to develop a machine learning model for predicting the quality of wine using Python. The project is a collaborative effort between two team members, Adham, Ziad and me, who have worked together to create an accurate and reliable wine quality prediction system.
Wine quality prediction is an important task in the winemaking industry. By analyzing various chemical properties of wine samples, it is possible to estimate their quality. In this project, we have employed machine learning techniques to build a model that can predict the quality of wine based on its chemical attributes.
The goal of this project is to provide winemakers and enthusiasts with a reliable tool to assess the quality of their wines. By using this model, users can input the chemical composition of a wine sample and obtain a predicted quality rating. This can be particularly useful in quality control, wine production, and decision-making processes.
We have used the "Wine Quality" dataset, which is freely available on the UCI Machine Learning Repository. The dataset consists of various physicochemical properties of red and white wines, along with their corresponding quality ratings provided by experts. The dataset has been preprocessed and cleaned to ensure accurate results.
For more information about the dataset, please refer to the following publication:
- P. Cortez, A. Cerdeira, F. Almeida, T. Matos, and J. Reis. "Modeling wine preferences by data mining from physicochemical properties." Decision Support Systems, Elsevier, 47(4):547-553, 2009.
The following dependencies are required to run the project:
- Python 3.7 or higher
- pandas
- numpy
- matplotlib
- seaborn
- plotly
- scikit-learn
- termcolor
You can install these dependencies by running the following command:
pip install -r requirements.txt
To get started with the project, you can follow these steps:
- Clone the repository:
git clone https://github.com/MohamedKhalidLx/Wine-Quality-Prediction.git
- Change to the project directory:
cd Wine-Quality-Prediction
- Install the required dependencies as mentioned in the Dependencies section.
To use the wine quality prediction model, you can follow these steps:
-
Ensure that you have the necessary dependencies installed.
-
Prepare your dataset or use the provided "winequality.csv" file.
-
Open the Jupyter Notebook or Python script where the model is implemented.
-
Run the code and provide the necessary inputs (chemical attributes of the wine).
-
Obtain the predicted quality rating for the wine sample.
After training the model on the wine quality dataset, we achieved promising results. The accuracy of the model is approximately 85%, indicating its ability to accurately predict the quality of wines. However, it is important to note that the model's predictions are based on the provided dataset, and the accuracy may vary for different wine samples.
For more detailed information about the results and analysis, please refer to the Results directory.
We welcome
contributions to improve this project. If you have any ideas, suggestions, or bug fixes, please open an issue or submit a pull request. Your contributions will be acknowledged and greatly appreciated.
Name: Mohamed Khaled Mahmoud Sayed
E-mail: [email protected]
This project is licensed under the LICENSE. Feel free to use and modify the code as per your requirements.