Giter VIP home page Giter VIP logo

deyh2020 / spark-rapids-ml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvidia/spark-rapids-ml

0.0 0.0 0.0 8.4 MB

Spark RAPIDS MLlib – accelerate Apache Spark MLlib with GPUs

Home Page: https://nvidia.github.io/spark-rapids-ml/

License: Apache License 2.0

Shell 2.62% C++ 0.14% Python 27.66% Java 0.13% Scala 1.16% Groovy 0.43% Cuda 0.45% CMake 0.22% Jupyter Notebook 66.94% Dockerfile 0.24%

spark-rapids-ml's Introduction

Spark Rapids ML

Spark Rapids ML enables GPU accelerated distributed machine learning on Apache Spark. It provides several PySpark ML compatible algorithms powered by the RAPIDS cuML library, along with a compatible Scala API for the PCA algorithm.

These APIs seek to minimize any code changes to end user Spark code. After your environment is configured to support GPUs (with drivers, CUDA toolkit, and RAPIDS dependencies), you should be able to just change an import statement or class name to take advantage of GPU acceleration.

Python

# from pyspark.ml.feature import PCA
from spark_rapids_ml.feature import PCA

pca = (
    PCA()
    .setK(3)
    .setInputCol("features")
    .setOutputCol("pca_features")
)
pca.fit(df)

Scala

// val pca = new org.apache.spark.ml.feature.PCA()
val pca = new com.nvidia.spark.ml.feature.PCA()
  .setK(3)
  .setInputCol("features")
  .setOutputCol("pca_features")
  .fit(df)

Supported Algorithms

The following table shows the currently supported algorithms. The goal is to expand this over time with support from the underlying RAPIDS cuML libraries. If you would like support for a specific algorithm, please file a git issue to help us prioritize.

Supported Algorithms Python Scala
CrossValidator
KMeans
k-NN (*)
LinearRegression
LogisticRegression
PCA
RandomForestClassifier
RandomForestRegressor
UMAP (*)

Note: Spark does not provide a k-Nearest Neighbors (k-NN) implementation, but it does have an LSH-based Approximate Nearest Neighbor implementation. As an alternative to PCA, we also provide a Spark API for GPU accelerated Uniform Manifold Approximation and Projection (UMAP), a non-linear dimensionality reduction algorithm in the RAPIDS cuML library.

Getting started

Performance

GPU acceleration can provide significant performance and cost benefits. Benchmarking instructions and results can be found here.

Contributing

We welcome community contributions! Please refer to CONTRIBUTING.md to get started.

spark-rapids-ml's People

Contributors

nvauto avatar wbo4958 avatar eordentlich avatar leewyang avatar lijinf2 avatar wjxiz1992 avatar pxli avatar rishic3 avatar nvtimliu avatar yanxuanliu avatar garyshen2008 avatar dependabot[bot] avatar sameerz avatar razajafri avatar

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.