Skip to content

Salman-shaik116/wine_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation


Wine Quality Prediction

This project aims to predict the quality of wine based on various chemical properties using machine learning models. The dataset used for this analysis contains wine samples with different features such as acidity, sugar content, pH, and alcohol levels.

Project Structure

  • Data Preprocessing: The raw wine data is cleaned and processed for training machine learning models.
  • Model Training: Multiple machine learning models are trained to classify the quality of wine.
  • Model Comparison: The models are evaluated, and their performances are compared based on accuracy scores.

Models Used

  • Logistic Regression
  • K-Nearest Neighbors (KNN)
  • Support Vector Classifier (SVC)
  • Decision Tree Classifier
  • Gaussian Naive Bayes
  • Random Forest Classifier
  • XGBoost Classifier

Results

The models were evaluated based on their accuracy scores. The top-performing models were:

  1. XGBoost Classifier: 90.42%
  2. Random Forest Classifier: 89.58%
  3. Logistic Regression: 87.50%

Dependencies

  • Python 3.x
  • Required Libraries:
    • pandas
    • numpy
    • scikit-learn
    • xgboost
    • matplotlib
    • seaborn

You can install the required libraries by running:

pip install pandas numpy scikit-learn xgboost matplotlib seaborn

Usage

  1. Data Loading: Load the wine quality dataset.
  2. Preprocessing: Perform data cleaning and feature engineering.
  3. Model Training: Train various machine learning models on the preprocessed data.
  4. Evaluation: Compare the models based on their accuracy scores.
  5. Visualization: Use matplotlib and seaborn for visualizations.

Conclusion

The project demonstrates the application of various machine learning models to predict wine quality based on chemical properties. XGBoost Classifier achieved the highest accuracy, followed by Random Forest and Logistic Regression.

Acknowledgments

This project is part of a wine quality analysis challenge. Special thanks to the creators of the dataset.


About

this is the wine analysis data science and aiml project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors