Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1248cb2

Browse files
Update README.md
1 parent c3ca811 commit 1248cb2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# K-Means clustering in C++
22

3+
![Binary build](https://github.com/aditya1601/kmeans-clustering-cpp/actions/workflows/c-cpp.yml/badge.svg)
4+
35
#### This is a C++ implementation of the simple K-Means clustering algorithm.
46

57
K-means clustering is a type of unsupervised learning, which is used when you have unlabeled data (i.e., data without defined categories or groups). The goal of this algorithm is to find groups in the data, with the number of groups represented by the variable K. The algorithm works iteratively to assign each data point to one of K groups based on the features that are provided. Data points are clustered based on feature similarity.
@@ -13,8 +15,14 @@ The input supports any number of points and any number of dimensions. Make the "
1315
* Make a file "input.txt" with all the point coordinates. The format should be as shown below (the example has 2-dimensional coordinates):
1416

1517
![Input File Syntax](image/input.png)
16-
* Run the kmeans binary with the input file name, number of clusters and output directory as command line arguments, as shown below:
18+
* Run the kmeans binary with the input file name, number of clusters and output directory as command line arguments
19+
20+
Run this command :
21+
`
22+
./kmeans input.txt 2 cluster-details
23+
`
1724

25+
Output :
1826
![Bash Output](image/cmd.png)
1927
* The output will be 2 files in the output directory (eg: cluster-details) which contains the center point of each cluster, and cluster detail for each point.
2028

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /