GithubHelp home page GithubHelp logo

yessenbayev / kmeans Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 797.56 MB

K-means Clustering in CUDA with OpenGL Visualization

C++ 89.18% Cuda 0.91% CMake 0.41% C 9.50% Batchfile 0.01%
opengl kmeans-clustering cuda glut cusolver

kmeans's Introduction

KMeans Clustering in CUDA with OpenGL Visualization

This is our final project for GPU Programming course at UC San Diego. The objective is to implement KMeans algorithm in CUDA.

System Requirements

  • Windows 7/8/8.1/10
  • NVIDIA GPU with at least 5.2 CUDA compute capability
  • CUDA 9.1+

Instructions

To compile and run the solution please use CMake.

  1. Choose the root directory of this repository as a Source folder, and choose any folder for the Build folder
  2. Open classlab.sln (with Visual Studio), which is located in the Build folder you have chosen
  3. Choose a Startup project of interest by using the right-click menu
  4. Run the release version without debug

There are several projects of interest in this solution:

  • ece285kmeans-Images holds the version of the program that performs PCA on MNIST dataset and then clusters 3D embedding with k-means algorithm
  • ece285kmeans-RandomPoints holds the version of the program that performs k-means clustering on 3 randomly generated clusters
  • ece285kmeans-TriangleInequality holds the implementation of the triangle inequality optimization, which forces the program to terminate if it is guaranteed that all points left for checking are further away than the last visited centroid.

Visualization Controls

  • Hold left-mouse key to rotate the clusters
  • Use mouse wheel to zoom in and out

kmeans's People

Contributors

gunjanpatil avatar unnikrishnan123 avatar unnikrishnansivaprasad avatar vgudavar avatar yessenbayev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.