Skip to content
/ cuml Public
forked from rapidsai/cuml

cuML [alpha] - RAPIDS Machine Learning Library

License

Notifications You must be signed in to change notification settings

dantegd/cuml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cuML (v0.1 Alpha)

Machine learning is a fundamental capability of RAPIDS. cuML is a suite of libraries that implements a machine learning algorithms within the RAPIDS data science ecosystem. cuML enables data scientists, researchers, and software engineers to run traditional ML tasks on GPUs without going into the details of CUDA programming.

The cuML repository contains:

  1. python: Python based GPU Dataframe (GDF) machine learning package that takes cuDF dataframes as input. cuML connects the data to C++/CUDA based cuML and ml-prims libraries without ever leaving GPU memory.

  2. cuML: C++/CUDA machine learning algorithms. This library currently includes the following five algorithms; a. Single GPU Truncated Singular Value Decomposition (tSVD). b. Single GPU Principal Component Analysis (PCA). c. Single GPU Density-based Spatial Clustering of Applications with Noise (DBSCAN). d. Single GPU Kalman Filtering e. Multi-GPU K-Means Clustering

  3. ml-prims: Low level machine learning primitives used in cuML. ml-prims is comprised of the following components; a. Linear Algebra b. Statistics c. Basic Matrix Operations d. Distance Functions e. Random Number Generation

Available Algorithms for version 0.1alpha:

  • Truncated Singular Value Decomposition (tSVD)

  • Principal Component Analysis (PCA)

  • Density-based spatial clustering of applications with noise (DBSCAN)

Upcoming algorithms for version 0.1:

  • kmeans

  • Kalman Filter

More ML algorithms in cuML and more ML primitives in ml-prims are being added currently. Example notebooks are provided in the python folder to test the functionality and performance of this v0.1 alpha version. Goals for future versions include more algorithms and multi-gpu versions of the algorithms and primitives.

The installation option provided currently consists on building from source. Upcoming versions will add pip and conda options, along docker containers. They will be available in the coming weeks.

Setup

Dependencies

To use cuML, it must be cloned and built in an environment that already has the dependencies, including cuDF and its dependencies.

List of dependencies:

  1. zlib
  2. cmake (>= 3.8, version 3.11.4 is recommended and there are issues with version 3.12)
  3. CUDA SDK (>= 9.0)
  4. Cython (>= 0.28)
  5. gcc (>=5.4.0)
  6. nvcc
  7. cuDF

Setup steps

To clone:

git clone --recurse-submodules https://github.com/rapidsai/cuml.git

To build the python package, in the repository root folder:

cd python
python setup.py install

Building CuML:

Running tests

To test the C++ algorithms using googletests, without compiling the

$ mkdir build
$ cd build
$ cmake ..
$ make -j
$ ./ml_test

Python Tests

Additional python tests can be found in the pythontests folder, along some useful scripts. Py.test based unit testing are being added for the final version 0.1.

External

The external folders contains submodules that this project in-turn depends on. Appropriate location flags will be automatically populated in the main CMakeLists.txt file for these.

Current external subbmodules are:

Contributing

Plese use issues and pull requests to report bugs and add functionality.

Contact

Find out more details on the RAPIDS site

About

cuML [alpha] - RAPIDS Machine Learning Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 51.4%
  • Cuda 22.3%
  • Jupyter Notebook 13.5%
  • Python 11.6%
  • CMake 1.1%
  • Shell 0.1%