Git Product home page Git Product logo

gpu_nipals_gs_pca's Introduction

Parallel GPU Implementation of IterativePCA Algorithms

Principal component analysis (PCA) is one of the most valuable results from applied linear algebra, and probably the most popular method used for compacting higher dimensional data sets into lower dimensional ones for data analysis, visu-alization, feature extraction, or data compression

  • The purpose of considering this algorithm here is three-fold:
    • it gives additional insight into what the loadings and scores mean;
    • it shows how each component is independent of (orthogonal to) the other components,
    • it shows how the algorithm can handle missing data.
  • The algorithm extracts each component sequentially, starting with the first component, direction of greatest variance, and then the second component, and so on.

Checkout this link and this link for a more detailed view of the algorithm.

The purpose is to implement the paper :link on GPU using pyCuda.

Install requirements

You'll need Numpy, Sklearn for running and testing the CPU verion.

For running the GPU version, you'll need a Linux or Windows 10 PC with a modern NVIDIA GPU (>=2016) is required, with all necessary GPU drivers and the CUDA Toolkit (10.0 onward) installed. A suitable Python (>=3) with the PyCUDA module is also required.ย 

Testings

For testing the kernel functions in tests/, run the following:

pip install -e .
python -m unittest -v tests/test_nipals_gpu.py

The kernel functions in test_kernels/ are an optimized version of the operations in nipals/kernels.py but are not stable yet.

gpu_nipals_gs_pca's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

andrewcheng2016

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.