Skip to main content

Smart Hyperdimensional Clustering algorithm: FebHD

Project description

hd-clustering

Authors: Alejandro Hernández Cano, Mohsen Imani.

Installation

In order to install the package, simply run the following:

pip install febhd_clustering

Visit the PyPI project page for more information about releases.

Documentation

Read the documentation of this project.

Quick start

The following code generates dummy data and trains a FebHD clustering model with it.

>>> import febhd_clustering
>>> dim = 10000
>>> n_samples = 1000
>>> features = 100
>>> clusters = 5
>>> x = torch.randn(n_samples, features) # dummy data
>>> model = febhd_clustering.FebHD(clusters, features, dim=dim)
>>> if torch.cuda.is_available():
...     print('Training on GPU!')
...     model = model.to('cuda')
...     x = x.to('cuda')
...
Training on GPU!
>>> model.fit(x, epochs=10)
>>> ypred = model(x)
>>> ypred.size()
torch.Size([1000])

For more examples, see the examples/ directory.

Citation request

If you use hd-clustering, please cite the following papers:

  1. Alejandro Hernández-Cano, Yeseong Kim, Mohsen Imani. "A Framework for Efficient and Binary Clustering in High-Dimensional Space". IEEE/ACM Design Automation and Test in Europe Conference (DATE), 2021.

  2. Mohsen Imani, et al. "DUAL: Acceleration of Clustering Algorithms using Digital-based Processing In-Memory"r IEEE/ACM International Symposium on Microarchitecture (MICRO), 2020.

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

febhd_clustering-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

febhd_clustering-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file febhd_clustering-0.1.0.tar.gz.

File metadata

  • Download URL: febhd_clustering-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.10.11-arch1-1

File hashes

Hashes for febhd_clustering-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2cca0cdba1f435be706d91acb4cf2f4ea6f036e8bf237c24a2dd53833a674661
MD5 7193e8f00b3d50b4f2e31a22900037d0
BLAKE2b-256 b3b2cfd21fcde01894de63a36da503834fea2c37904ffd71ec642ff73d514872

See more details on using hashes here.

File details

Details for the file febhd_clustering-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: febhd_clustering-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.10.11-arch1-1

File hashes

Hashes for febhd_clustering-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76c5599c0f124784631d76a4e276cb1c54f6023d02832b6bd6b05d5e6ea6b6f6
MD5 8ec7f51a700bd1a53d4fb6d6134d832d
BLAKE2b-256 73fe4f4608f5e343afdbb7b658ee33ba04cd7eaa1fd5158aee6913f83396c057

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