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
covariance_matrix = get_cov(df.values)
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.0.30.tar.gz
(3.0 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.0.30.tar.gz.
File metadata
- Download URL: pycudacov-0.0.30.tar.gz
- Upload date:
- Size: 3.0 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 |
3385b037c9910eedac6d8f09cf95a3a0f890582a1d67313008c2e073f05e8f56
|
|
| MD5 |
720f77513e35a37cca4d908fa056c666
|
|
| BLAKE2b-256 |
de6e7eefccf20190f395f5e21af7af22fabf295a449e241dd7e5cccd80b82d4d
|
File details
Details for the file pycudacov-0.0.30-py3-none-any.whl.
File metadata
- Download URL: pycudacov-0.0.30-py3-none-any.whl
- Upload date:
- Size: 5.9 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 |
d58b8d1b86b5c75987eff9247e1d0b0649de8afd470d952c9b04ae7ac77fa5c8
|
|
| MD5 |
117f2bc3453bdda3404e76acb4c30797
|
|
| BLAKE2b-256 |
298043e9835adac89e820b2b3847f73cc00f60b0fcdeb802a825ba136e5ff13e
|