Skip to content

Implementation of the k-means algorithm in PyTorch that works for large datasets

License

Notifications You must be signed in to change notification settings

ilyaraz/pytorch_kmeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PyTorch implementation of the k-means algorithm

This code works for a dataset, as soon as it fits on the GPU. Tested for Python3 and PyTorch 1.0.0.

For simplicity, the clustering procedure stops when the clustering stops updating. In practice, this might be too strict and should be relaxed.

There is a magic constant (search for chunk_size) which should ideally be determined automatically based on the amount of free memory on the GPU.

About

Implementation of the k-means algorithm in PyTorch that works for large datasets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages