Skip to main content

A PyCuda Covariance Matrix Parallel Implementation

Project description

PyCUDACov - A PyCuda Covariance Matrix Parallel Implementation

MIT License

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

MIT

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

pycudacov-0.0.32.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

pycudacov-0.0.32-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pycudacov-0.0.32.tar.gz.

File metadata

  • Download URL: pycudacov-0.0.32.tar.gz
  • Upload date:
  • Size: 3.2 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

Hashes for pycudacov-0.0.32.tar.gz
Algorithm Hash digest
SHA256 05ef79ebc44e88bdf38ca68c51298276f6b385b4e233a00936bce1bae135a400
MD5 841294281b5fe5d9c281ceffbb10abbc
BLAKE2b-256 8d879a02e353c49469d5f782c00f85538184a59eda777783ae208f920b590ddf

See more details on using hashes here.

File details

Details for the file pycudacov-0.0.32-py3-none-any.whl.

File metadata

  • Download URL: pycudacov-0.0.32-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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

Hashes for pycudacov-0.0.32-py3-none-any.whl
Algorithm Hash digest
SHA256 d48cdb3424cf6d692cbf237a038a9835167c2cf20b7109a6fa57e9a3653065e8
MD5 6026e741f997d1eae9b76fb27d6402e3
BLAKE2b-256 3e255e5be37cb377758fd9b10dd8656c85feeb7cd05b0bedea992a3c2ba2517b

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