Skip to main content

Python library to perform clustering computations on GPU.

Project description

videoclusters

Python library to perform clustering computations on GPU.

Installation

Use the package manager pip to install videoclusters.

pip install videoclusters

Usage example

from videoclusters.centroid_based.KMeans import KMeans

# initialization of the cluster
kmeans_cluster = KMeans(num_clusters=2)

# initialization of uneven distributed data
data = torch.randint(low=1,
                     high=10,
                     size=(100, 2),
                     dtype=torch.float32).to('cuda')

data[50:] = torch.randint(low=20,
                          high=30,
                          size=(50, 2),
                          dtype=torch.float32).to('cuda')

# starting computation
result = kmeans_cluster.fit_predict(data)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videoclusters-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

videoclusters-0.0.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file videoclusters-0.0.4.tar.gz.

File metadata

  • Download URL: videoclusters-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for videoclusters-0.0.4.tar.gz
Algorithm Hash digest
SHA256 19fe3a8296785db7b4dfbed72e4bc01938a9db100a7e6544546ba4195cedc418
MD5 4642f4f468f934971ac16a54244154ca
BLAKE2b-256 53be1d43f36f3adea5114c5751db18e202be369e70b920bb4de24100f5e8cec8

See more details on using hashes here.

File details

Details for the file videoclusters-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: videoclusters-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for videoclusters-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2355949f5b3f10b8df8f6489ac0acd31aba454748a974aa626f71458504f5b7
MD5 c9b506e0c786d28c1de08449e3b8898a
BLAKE2b-256 6b40387126d0a02fcefd5ffd26d60ae5eb5ae30fe088048fc427a5ac8173fd07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page