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 = 16384, 1024 # 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)
# Call to PyCUDA Kernel, return the cov. matrix and
# GPU execution time in milliseconds
covariance_matrix, gpu_exec_time = get_cov(df.values)
Limitations
-The maximum number of features or columns of the data matrix is up to 1024
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycudacov-0.1.0.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycudacov-0.1.0.tar.gz.
File metadata
- Download URL: pycudacov-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06de1c7623eb57ca82e7a1a9394bfb8510de98b04227a4843c166b7df7d472e2
|
|
| MD5 |
d1bfe08e734b5c9df8de7635b83a364b
|
|
| BLAKE2b-256 |
c9af432f98e085efdc59a6bee4a2d752bbfd0c4e4172c2855338aa7d3d2f17e4
|
File details
Details for the file pycudacov-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycudacov-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
544fbef26fe57855d0213a15f8d84c871152095a9cf215b92af2eaebf7bc6e11
|
|
| MD5 |
e81d623c4f5a064df9f13d6f201f977d
|
|
| BLAKE2b-256 |
0ca3db5c45e83ef16c792a14615d4c5558f36ef6785743e8fe5ddefda705adb0
|