Skip to content

Wine Quality Profiling using K-Means Clustering (Unsupervised Learning)-by Cherinet Bekele#13

Open
chere-collab wants to merge 1 commit intosoftwareWCU:mainfrom
chere-collab:Unsupervised_Learining
Open

Wine Quality Profiling using K-Means Clustering (Unsupervised Learning)-by Cherinet Bekele#13
chere-collab wants to merge 1 commit intosoftwareWCU:mainfrom
chere-collab:Unsupervised_Learining

Conversation

@chere-collab
Copy link
Copy Markdown

Wine Quality Profiling and Classification using K-Means Clustering

  1. Data Cleaning & Preparation
    Encoding: The model converted the type column from text into numerical values (0 for Red, 1 for White).
    Scaling: The model standardized all numerical columns (such as alcohol, density, and residual sugar) to ensure they all contribute equally to the distance calculation.

  2. Exploratory Visualization
    Correlation Analysis: The model analyzed the relationships between all chemical columns (like pH and fixed acidity) using a heatmap.
    Initial Plotting: The model visualized the distribution of specific columns, such as alcohol and density, to see how the wine types naturally separated.

3.Determining the Optimal Clusters (K)Mathematical Calculation: The model computed the WCSS (error) for the entire set of features across different cluster counts.

  1. Executing K-Means Clustering
    Partitioning: The model sorted all wines into three distinct groups based on the multi-dimensional values of all 12 chemical columns.
    Centroid Calculation: The model calculated the arithmetic mean for every column (e.g., average volatile acidity, sulphates, and quality) to establish the new center of each cluster.

5.New Data Prediction
Classification: The model processed a new set of wine features through the same scaling rules used for the original columns.
Assignment: The model predicted the cluster by comparing the new wine's chemical measurements against the final means (centroids) of each established group.

@chere-collab chere-collab changed the title Wine Quality Profiling and Classification using K-Means Clustering-by Cherinet Bekele Wine Quality Profiling using K-Means Clustering (Unsupervised Learning)-by Cherinet Bekele Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant