Skip to content

The Grape Quality Prediction project uses machine learning to predict the quality of grapes based on chemical properties like acidity, sugar content, and alcohol levels. It applies regression models to forecast the quality score, helping in wine production and quality assessment.

Notifications You must be signed in to change notification settings

alphacrypto246/Grape-Quality-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Grape Quality Prediction

This project uses machine learning to predict the quality of grapes based on various factors like acidity, sugar content, and other chemical properties. It demonstrates the use of regression models to predict the quality of wine grapes from a dataset that contains information about different chemical features.

Dataset

The dataset used for this project contains various chemical properties of grapes and the target variable is the quality score. Key features include:

  • Fixed Acidity: Amount of tart taste.
  • Volatile Acidity: Affects the taste and smell.
  • Citric Acid: Contributes to the taste and freshness.
  • Residual Sugar: Sugar remaining after fermentation.
  • Chlorides: Salt concentration.
  • Free Sulfur Dioxide: Preservative.
  • Total Sulfur Dioxide: Overall sulfur content.
  • Density: Weight of the liquid.
  • pH: Measure of acidity.
  • Sulphates: Impact on flavor.
  • Alcohol: Alcohol content of the wine.
  • Quality: Target variable, indicating the quality of the grape (1-10).

Technologies Used

  • Python: For data analysis and modeling.
  • Pandas: For data manipulation and preprocessing.
  • Scikit-learn: For implementing regression models.
  • Matplotlib & Seaborn: For data visualization.

Steps

  1. Data Preprocessing: Clean and preprocess the data (handling missing values, encoding categorical variables, etc.).
  2. Model Training: Use machine learning regression models (e.g., Decision Tree, Random Forest) to train the model on the dataset.
  3. Evaluation: Evaluate the model using performance metrics such as R² score and Mean Absolute Error (MAE).
  4. Prediction: Use the trained model to predict grape quality based on input features.

How to Run

  1. Clone the repository:

    git clone https://github.com/alphacrypto246/Grape-Quality-Prediction.git
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the Jupyter notebook:

    jupyter notebook main.ipynb

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

The Grape Quality Prediction project uses machine learning to predict the quality of grapes based on chemical properties like acidity, sugar content, and alcohol levels. It applies regression models to forecast the quality score, helping in wine production and quality assessment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published