Skip to main content

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.

Metadata

Release files for febhd-clustering 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for febhd-clustering 0.1.0
File Size Uploaded Provenance Actions
febhd_clustering-0.1.0.tar.gz 5.4 kB Without provenance Details for febhd_clustering-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for febhd-clustering 0.1.0
File Interpreter ABI Platform Actions
febhd_clustering-0.1.0-py3-none-any.whl Python 3 none any Details for febhd_clustering-0.1.0-py3-none-any.whl

Total release size: 11.5 kB

Release files / febhd_clustering-0.1.0.tar.gz

Download URL febhd_clustering-0.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2cca0cdba1f435be706d91acb4cf2f4ea6f036e8bf237c24a2dd53833a674661
BLAKE2b-256 checksum
How to use checksums
b3b2cfd21fcde01894de63a36da503834fea2c37904ffd71ec642ff73d514872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.10.11-arch1-1

Release files / febhd_clustering-0.1.0-py3-none-any.whl

Download URL febhd_clustering-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76c5599c0f124784631d76a4e276cb1c54f6023d02832b6bd6b05d5e6ea6b6f6
BLAKE2b-256 checksum
How to use checksums
73fe4f4608f5e343afdbb7b658ee33ba04cd7eaa1fd5158aee6913f83396c057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.10.11-arch1-1

Security for febhd-clustering 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page