PyCUDACov - A PyCuda Covariance Matrix Parallel Implementation
Usage and Installation
Requires CUDA enviroment.
Installation:
$ pip install pycudacov
Basic Usage
from sklearn.datasets import make_blobs
from sklearn.preprocessing import StandardScaler
from pandas import DataFrame
import numpy as np
from pycudacov import get_cov
# Generate test dataset
rows, cols = 2048, 2048 # samples, features
X, y = make_blobs(n_samples = rows, centers = 2, n_features = cols)
X_std = StandardScaler().fit_transform(X) # Optional
df = DataFrame(X_std)
df = df.astype(np.float32)
blocks = 512 # Size of kernel blocks
threads = 256 # Size of threads per block
# Call to PyCUDA Kernel, return the cov. matrix and
# GPU execution time in milliseconds
covariance_matrix, gpu_exec_time = get_cov(df.values, blocks, threads)
License
Metadata
Release files for pycudacov 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycudacov-0.1.2.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycudacov-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / pycudacov-0.1.2.tar.gz
| Download URL | pycudacov-0.1.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abe49d36b0bb234b19626ac2a8f5541df553e304cff9e77c77746a42bf798497
|
|
BLAKE2b-256 checksum How to use checksums |
79a2162aa4b496f39f7c38419e4c32f9baac6f53fd2d935b442528113aec6dbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5
|
Release files / pycudacov-0.1.2-py3-none-any.whl
| Download URL | pycudacov-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3e268560a7657e5b7f877ff01efbe1d6cb207e8a4c2355076b427c80c5415c7
|
|
BLAKE2b-256 checksum How to use checksums |
cb6593d892207f1c22fe48c877481efce0d3b01f8e6a18fee7b9657270bd7005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5
|