Coder Social home page Coder Social logo

samahussien7 / handwritten-digit-classification-using-k-means-clustering Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 33 KB

Using K-Means clustering, with feature extraction comparison between centroid and chaincode methods.. The script implements K-Means clustering from scratch, performs feature extraction using both centroid and chaincode techniques, evaluates classification accuracy, and compares the effectiveness of the two feature extraction methods.

Jupyter Notebook 100.00%

handwritten-digit-classification-using-k-means-clustering's Introduction

Handwritten-Digit-Classification-Using-K-Means-Clustering

Using K-Means clustering, with feature extraction comparison between centroid and chaincode methods.. The script implements K-Means clustering from scratch, performs feature extraction using both centroid and chaincode techniques, evaluates classification accuracy, and compares the effectiveness of the two feature extraction methods.

Steps:

Load MNIST Dataset:

Retrieves the MNIST dataset containing images of handwritten digits along with their corresponding labels.

Feature Extraction with Centroid Method:

Computes centroids for each image. Uses centroid coordinates as features for clustering.

K-Means Clustering:

Implements K-Means clustering algorithm without relying on built-in functions. Clusters the data based on the extracted centroid features.

Classification and Accuracy Evaluation (Centroid Method):

Assigns cluster labels to each image and evaluates classification accuracy. Computes accuracy metric to assess the performance of K-Means clustering with centroid feature extraction.

Feature Extraction with Chaincode Method:

Computes chaincode for each image block. Utilizes chaincode features for clustering.

K-Means Clustering (Chaincode Method):

Applies K-Means clustering using chaincode features.

Classification and Accuracy Evaluation (Chaincode Method):

Assigns cluster labels to images based on chaincode features and evaluates accuracy. Computes accuracy metric to compare with the centroid method.

Comparison of Feature Extraction Methods:

Analyzes and compares the accuracy achieved with centroid and chaincode feature extraction. Determines which feature extraction method yields better performance with K-Means clustering.

handwritten-digit-classification-using-k-means-clustering's People

Contributors

aalaa4444 avatar samahussien7 avatar

Watchers

 avatar

Forkers

aalaa4444

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.