×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

How do we classify data points based on their proximity to the centroids in the custom k-means algorithm?

by EITCA Academy / Monday, 07 August 2023 / Published in Artificial Intelligence, EITC/AI/MLP Machine Learning with Python, Clustering, k-means and mean shift, Custom K means, Examination review

In the custom k-means algorithm, data points are classified based on their proximity to the centroids. This process involves calculating the distance between each data point and the centroids, and then assigning the data point to the cluster with the closest centroid.

To classify the data points, the algorithm follows these steps:

1. Initialization: The algorithm starts by randomly selecting K initial centroids from the dataset. K is the number of clusters desired.

2. Assignment: Each data point is assigned to the cluster whose centroid is closest to it. The distance between a data point and a centroid can be calculated using various distance metrics, such as Euclidean distance or Manhattan distance.

3. Update: After all data points have been assigned to clusters, the centroids are updated based on the mean of the data points in each cluster. The new centroid position is calculated as the average of the coordinates of all data points in that cluster.

4. Repeat: Steps 2 and 3 are repeated iteratively until convergence. Convergence occurs when the centroids no longer change significantly or when a maximum number of iterations is reached.

Let's illustrate this process with a simple example. Suppose we have a dataset with 100 data points and we want to cluster them into 3 clusters using the custom k-means algorithm.

1. Initialization: We randomly select 3 data points as the initial centroids.

2. Assignment: For each data point, we calculate the distance to each centroid and assign it to the closest cluster. For instance, if a data point is closest to the first centroid, it will be assigned to the first cluster.

3. Update: After all data points have been assigned to clusters, we update the centroids by calculating the mean of the data points in each cluster. The new centroids represent the center of each cluster.

4. Repeat: We repeat steps 2 and 3 until convergence. In each iteration, the data points are re-assigned to clusters based on the updated centroids, and the centroids are recalculated based on the new cluster assignments. This process continues until convergence or until a maximum number of iterations is reached.

By the end of the algorithm, each data point will be assigned to one of the clusters based on its proximity to the centroids. The resulting clusters are formed by grouping together data points that are similar to each other in terms of their distance to the centroids.

The custom k-means algorithm classifies data points based on their proximity to the centroids. It assigns each data point to the cluster with the closest centroid and updates the centroids iteratively until convergence is achieved.

Other recent questions and answers regarding Clustering, k-means and mean shift:

  • How does mean shift dynamic bandwidth adaptively adjust the bandwidth parameter based on the density of the data points?
  • What is the purpose of assigning weights to feature sets in the mean shift dynamic bandwidth implementation?
  • How is the new radius value determined in the mean shift dynamic bandwidth approach?
  • How does the mean shift dynamic bandwidth approach handle finding centroids correctly without hard coding the radius?
  • What is the limitation of using a fixed radius in the mean shift algorithm?
  • How can we optimize the mean shift algorithm by checking for movement and breaking the loop when centroids have converged?
  • How does the mean shift algorithm achieve convergence?
  • What is the difference between bandwidth and radius in the context of mean shift clustering?
  • How is the mean shift algorithm implemented in Python from scratch?
  • What are the basic steps involved in the mean shift algorithm?

View more questions and answers in Clustering, k-means and mean shift

More questions and answers:

  • Field: Artificial Intelligence
  • Programme: EITC/AI/MLP Machine Learning with Python (go to the certification programme)
  • Lesson: Clustering, k-means and mean shift (go to related lesson)
  • Topic: Custom K means (go to related topic)
  • Examination review
Tagged under: Artificial Intelligence, Custom K-means, Data Clustering, K-means Algorithm, Machine Learning, Python
Home » Artificial Intelligence » EITC/AI/MLP Machine Learning with Python » Clustering, k-means and mean shift » Custom K means » Examination review » » How do we classify data points based on their proximity to the centroids in the custom k-means algorithm?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support

90% of EITCA Academy fees subsidized in enrolment by

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2025  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?