Thanks to visit codestin.com
Credit goes to github.com

Skip to content

staszkiet/KMeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Implemantation of k-means algorithm in CUDA

usage: KMeans input_file_type algorithm input_file output_file

  • input_file_type - type of input file (possible values - bin/txt)
  • algorithm - choice of algorithm (possible values - cpu/gpu1/gpu2)
    • cpu - cpu implementation of algorithm
    • gpu1 - CUDA implementation using kernels
    • gpu2 - CUDA implementation using kernel + thrust library

Input file format:

  • first line - 3 integers representing:
    • N - count of points
    • d - count of dimensions
    • k - count of clusters
  • N more lines with d float numbers in each representing points

Output file format:

  • k lines with d float numbers in each representing clusters
  • N more lines with one ineteger number each representing number of a cluster to which the point was assigned

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published