repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos/cuml/cpp/test/sg/experimental/fil | rapidsai_public_repos/cuml/cpp/test/sg/experimental/fil/raft_proto/buffer.cpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test/sg/experimental/fil | rapidsai_public_repos/cuml/cpp/test/sg/experimental/fil/raft_proto/buffer.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test/sg | rapidsai_public_repos/cuml/cpp/test/sg/genetic/node_test.cpp | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test/sg | rapidsai_public_repos/cuml/cpp/test/sg/genetic/param_test.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test/sg | rapidsai_public_repos/cuml/cpp/test/sg/genetic/program_test.cu | /*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test/sg | rapidsai_public_repos/cuml/cpp/test/sg/genetic/evolution_test.cu | /*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/c_api/knn_api_test.c | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/c_api/svm_api_test.c | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/c_api/README.md | # C-API Test Folder
The purpose of this folder and CMake target is to verify it's possible to build an executable/library using the C-API. Since the C-API is compiled using C++ and `extern "C"`, this verifies there are no additional oversights that would prevent users from consuming the C-API. For example, including a... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/c_api/glm_api_test.c | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/c_api/dbscan_api_test.c | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/c_api/holtwinters_api_test.c | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/knn_classify.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/knn_test_helper.cuh | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/test_opg_utils.h | /*
* Copyright (c) 2019-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/knn_regress.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/knn.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/pca.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/kmeans_test.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 |
rapidsai_public_repos/cuml/cpp/test | rapidsai_public_repos/cuml/cpp/test/mg/main.cu | /*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp | rapidsai_public_repos/cuml/cpp/examples/CMakeLists.txt | #
# Copyright (c) 2019-2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/symreg/prepare_input.py | # Copyright (c) 2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/symreg/CMakeLists_standalone.txt | #
# Copyright (c) 2021-2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/symreg/CMakeLists.txt | #=============================================================================
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/symreg/README.md | # symbolic regression
This subfolder contains an example on how perform symbolic regression in cuML (from C++)
There are two `CMakeLists.txt` in this folder:
1. `CMakeLists.txt` (default) which is included when building cuML
2. `CMakeLists_standalone.txt` as an example for a stand alone project linking to `libcuml.so`... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/symreg/symreg_example.cpp | /*
* Copyright (c) 2021-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/dbscan/CMakeLists_standalone.txt | #
# Copyright (c) 2019-2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/dbscan/CMakeLists.txt | #=============================================================================
# Copyright (c) 2019-2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://ww... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/dbscan/README.md | # DBSCAN
This example code demonstrates use of C++ API of cuML DBSCAN. It requires `libcuml.so` in order to build.
## Build
The example can be build either as part of cuML or can also be build as a standalone. Two separate `CMakeLists.txt` files are provided for these two cases.
1. `CMakeLists.txt` - To be used when... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/dbscan/dbscan_example.cpp | /*
* Copyright (c) 2019-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/dbscan/gen_dataset.py | #!/usr/bin/python3
#
# Copyright (c) 2019, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/kmeans/prepare_input.py | #!/usr/bin/env python3
#
# Copyright 2017-2018 H2O.ai, Inc.
# Copyright (c) 2019, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/kmeans/CMakeLists_standalone.txt | #
# Copyright (c) 2019-2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/kmeans/CMakeLists.txt | #=============================================================================
# Copyright (c) 2019-2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://ww... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/kmeans/README.md | # kmeans
This subfolder contains an example on how to use cuML kmeans from C++ application
There are two `CMakeLists.txt` in this folder:
1. `CMakeLists.txt` (default) which is included when building cuML
2. `CMakeLists_standalone.txt` as an example for a stand alone project linking to `libcuml.so`
## Build
`kmeans_ex... | 0 |
rapidsai_public_repos/cuml/cpp/examples | rapidsai_public_repos/cuml/cpp/examples/kmeans/kmeans_example.cpp | /*
* Copyright (c) 2019-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/target_encoder_walkthrough.ipynb | import os
GPU_id = '0,1,2,3'
os.environ['CUDA_VISIBLE_DEVICES'] = GPU_id
num_gpus = len(GPU_id.split(','))import warnings
warnings.filterwarnings("ignore")
import numpy as np
import cudf as gd
import cupy as cp
from cuml.preprocessing.LabelEncoder import LabelEncoder
from cuml.preprocessing.TargetEncoder import Target... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/linear_regression_demo.ipynb | import cudf
from cuml import make_regression, train_test_split
from cuml.linear_model import LinearRegression as cuLinearRegression
from cuml.metrics.regression import r2_score
from sklearn.linear_model import LinearRegression as skLinearRegressionn_samples = 2**20 #If you are running on a GPU with less than 16GB RAM, ... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/kmeans_mnmg_demo.ipynb | from cuml.dask.cluster.kmeans import KMeans as cuKMeans
from cuml.dask.common import to_dask_df
from cuml.dask.datasets import make_blobs
from cuml.metrics import adjusted_rand_score
from dask.distributed import Client, wait
from dask_cuda import LocalCUDACluster
from dask_ml.cluster import KMeans as skKMeans
import cu... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/README.md | # cuML Notebooks
## Intro
These notebooks provide examples of how to use cuML. These notebooks are designed to be self-contained with the `runtime` version of the [RAPIDS Docker Container](https://hub.docker.com/r/rapidsai/rapidsai/) and [RAPIDS Nightly Docker Containers](https://hub.docker.com/r/rapidsai/rapidsai-nig... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/nearest_neighbors_demo.ipynb | import cudf
import numpy as np
from cuml.datasets import make_blobs
from cuml.neighbors import NearestNeighbors as cuNearestNeighbors
from sklearn.neighbors import NearestNeighbors as skNearestNeighborsn_samples = 2**17
n_features = 40
n_query = 2**13
n_neighbors = 4
random_state = 0%%time
device_data, _ = make_blobs(... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/kmeans_demo.ipynb | import cudf
import cupy
import matplotlib.pyplot as plt
from cuml.cluster import KMeans as cuKMeans
from cuml.datasets import make_blobs
from sklearn.cluster import KMeans as skKMeans
from sklearn.metrics import adjusted_rand_score
%matplotlib inlinen_samples = 100000
n_features = 25
n_clusters = 8
random_state = 0de... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/random_forest_demo.ipynb | import cudf
import numpy as np
import pandas as pd
import pickle
from cuml.ensemble import RandomForestClassifier as curfc
from cuml.metrics import accuracy_score
from sklearn.ensemble import RandomForestClassifier as skrfc
from sklearn.datasets import make_classification
from sklearn.model_selection import train_tes... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/random_forest_mnmg_demo.ipynb | import numpy as np
import sklearn
import pandas as pd
import cudf
import cuml
from sklearn import model_selection
from cuml import datasets
from cuml.metrics import accuracy_score
from cuml.dask.common import utils as dask_utils
from dask.distributed import Client, wait
from dask_cuda import LocalCUDACluster
import ... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/forest_inference_demo.ipynb | import cupy
import os
from cuml.testing.utils import array_equal
from cuml.internals.import_utils import has_xgboost
from cuml.datasets import make_classification
from cuml.metrics import accuracy_score
from cuml.model_selection import train_test_split
from cuml import ForestInferenceif has_xgboost():
import... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/notebooks/arima_demo.ipynb | import cudf
from cuml.tsa.arima import ARIMA
import cupy as cp
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import randomdef load_dataset(name, max_batch=4):
import os
pdf = pd.read_csv(os.path.join("data", "time_series", "%s.csv" % name))
return cudf.from_pandas(pdf[pdf.columns[1... | 0 |
rapidsai_public_repos/cuml/notebooks | rapidsai_public_repos/cuml/notebooks/tools/hdbscan_soft_clustering_benchmark.ipynb | import os
import time
import json
from datetime import datetime
import numpy as np
import pandas as pd
import cuml
import hdbscan
from sentence_transformers import SentenceTransformermillion_articles_path = "/home/cjnolet/Downloads/archive.zip"DATE_TAG = datetime.now().strftime("%Y-%m-%d")
outpath = f"hdbscan-apmv-... | 0 |
rapidsai_public_repos/cuml/notebooks | rapidsai_public_repos/cuml/notebooks/tools/cuml_benchmarks.ipynb | import cuml
import pandas as pd
from cuml.benchmark.runners import SpeedupComparisonRunner
from cuml.benchmark.algorithms import algorithm_by_name
import warnings
warnings.filterwarnings('ignore', 'Expected column ')
print(cuml.__version__)N_REPS = 3 # Number of times each test is repeated
DATA_NEIGHBORHOODS = "bl... | 0 |
rapidsai_public_repos/cuml/notebooks/data | rapidsai_public_repos/cuml/notebooks/data/time_series/population_estimate.csv | "Year","Male","Female"
1875,238.1,183.2
1876,250.4,194.2
1877,252.5,201.6
1878,264.6,211.5
1879,281.8,225.5
1880,292.3,236.2
1881,299.4,245.7
1882,307.7,254.1
1883,319.0,265.9
1884,331.0,277.4
1885,336.5,282.8
1886,340.5,290.9
1887,347.4,297.9
1888,347.8,301.6
1889,351.4,306.6
1890,355.4,312.1
1891,359.0,317.0
1892,368... | 0 |
rapidsai_public_repos/cuml/notebooks/data | rapidsai_public_repos/cuml/notebooks/data/time_series/README.md | # Time Series datasets
This folder contains various datasets to demonstrate our time series models.
**Disclaimer:** the data has been filtered and organized in a way that makes it suitable to test times series models. If you wish to use this data for other purposes, please take the data from its source.
## From Stat... | 0 |
rapidsai_public_repos/cuml/notebooks/data | rapidsai_public_repos/cuml/notebooks/data/time_series/net_migrations_auckland_by_age.csv | Year,5-9 years,10-14 years,15-19 years,30-34 years,35-39 years,40-44 years,45-49 years
1991,357,471,498,148,318,293,170
1992,361,483,511,251,477,396,174
1993,574,793,659,714,673,605,343
1994,974,1037,918,1234,1176,1037,568
1995,1384,1309,1132,2103,1586,1204,690
1996,941,873,811,1581,1213,971,603
1997,574,663,580,798,5... | 0 |
rapidsai_public_repos/cuml/notebooks/data | rapidsai_public_repos/cuml/notebooks/data/time_series/guest_nights_by_region.csv | ,Northland,Auckland,Waikato,Bay of Plenty,"Hawke's Bay, Gisborne","Taranaki, Manawatu, Wanganui",Wellington,"Nelson, Marlborough, Tasman",Canterbury,West Coast,Otago,Southland
1996M07,66,257,124,159,49,93,111,52,209,27,175,21
1996M08,58,266,111,138,45,89,105,54,210,28,211,23
1996M09,79,264,140,174,62,115,113,79,256,45,... | 0 |
rapidsai_public_repos/cuml/notebooks/data | rapidsai_public_repos/cuml/notebooks/data/weather/noaa_rdu.csv | date;temperaturemin;temperaturemax;precipitation;snowfall;snowdepth;avgwindspeed;fastest2minwinddir;fastest2minwindspeed;fastest5secwinddir;fastest5secwindspeed;fog;fogheavy;mist;rain;fogground;ice;glaze;drizzle;snow;freezingrain;smokehaze;thunder;highwind;hail;blowingsnow;dust;freezingfog
2015-04-08;62.1;84.0;0.0;0.0;... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/docs/README.md | # Building Documentation
## Building locally:
#### [Build and install cuML](../BUILD.md)
#### Generate the docs
```bash
bash build.sh cppdocs pydocs
```
#### Once the process finishes, documentation can be found in build/html
```bash
xdg-open build/html/api.html
```
| 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/docs/make.bat | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=cuML
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make su... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/docs/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = "-W"
SPHINXBUILD = sphinx-build
SPHINXPROJ = cuML
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help -v "... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/cuml_blogs.rst | Blogs and other references
==========================
The RAPIDS team blogs at https://medium.com/rapids-ai, and many of
these blog posts provide deeper dives into models or key features from
cuML. Here, we've selected just a few that are of particular interest
to cuML users:
Integrations, applications, and general c... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/cuml_intro.rst | Introduction
============
cuML accelerates machine learning on GPUs. The library follows a
couple of key principles, and understanding these will help you take
full advantage cuML.
1. Where possible, match the scikit-learn API
---------------------------------------------
cuML estimators look and feel just like `sc... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/execution_device_interoperability.ipynb | import cuml # no change is needed for even the importing!
import pandas as pd
from cuml.manifold.umap import UMAP
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.manifold import trustworthiness
# load the iris dataset from sklearn and extract the required information
iri... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/conf.py | #!/usr/bin/env python3
# Copyright (c) 2018-2023, NVIDIA CORPORATION.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented ... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/estimator_intro.ipynb | import cuml
from cupy import asnumpy
from joblib import dump, loadfrom cuml.datasets.classification import make_classification
from cuml.model_selection import train_test_split
from cuml.ensemble import RandomForestClassifier as cuRF
from sklearn.metrics import accuracy_score
# synthetic dataset dimensions
n_samples ... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/pickling_cuml_models.ipynb | import warnings
warnings.filterwarnings("ignore", category=FutureWarning)from cuml.datasets import make_blobs
X, y = make_blobs(n_samples=50,
n_features=10,
centers=5,
cluster_std=0.4,
random_state=0)from cuml.cluster import KMeans
model = KMeans... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/user_guide.rst | User Guide
==========
.. toctree::
:maxdepth: 2
estimator_intro.ipynb
pickling_cuml_models.ipynb
execution_device_interoperability.ipynb
| 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/api.rst | ~~~~~~~~~~~~~
API Reference
~~~~~~~~~~~~~
.. role:: py(code)
:language: python
:class: highlight
Module Configuration
====================
.. _output-data-type-configuration:
Output Data Type Configuration
------------------------------
.. autofunction:: cuml.internals.memory_utils.set_global_output_type
... | 0 |
rapidsai_public_repos/cuml/docs | rapidsai_public_repos/cuml/docs/source/index.rst | Welcome to cuML's documentation!
=================================
cuML is a suite of fast, GPU-accelerated machine learning algorithms
designed for data science and analytical tasks. Our API mirrors Sklearn's,
and we provide practitioners with the easy fit-predict-transform paradigm
without ever having to program on ... | 0 |
rapidsai_public_repos/cuml/docs/source | rapidsai_public_repos/cuml/docs/source/_static/references.css |
/* Fix references to not look like parameters */
dl.citation > dt.label {
display: unset !important;
float: left !important;
border: unset !important;
background: unset !important;
padding: unset !important;
margin: unset !important;
font-size: unset !important;
line-height: unset !important;
padding... | 0 |
rapidsai_public_repos/cuml/docs/source | rapidsai_public_repos/cuml/docs/source/sphinxext/github_link.py | # This contains code with copyright by the scikit-learn project, subject to the
# license in /thirdparty/LICENSES/LICENSE.scikit_learn
import inspect
import os
import re
import subprocess
import sys
from functools import partial
from operator import attrgetter
orig = inspect.isfunction
# See https://opendreamkit.or... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/test_cpp.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate C++ testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_cpp \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml
rap... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/build_python.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
source rapids-env-update
export CMAKE_GENERATOR=Ninja
rapids-print-env
package_name="cuml"
package_dir="python"
version=$(rapids-generate-version)
git_commit=$(git rev-parse HEAD)
export RAPIDS_PACKAGE_VERSION=${version}
echo "${versio... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/test_python_common.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate Python testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_python \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/build_wheel.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
package_name="cuml"
package_dir="python"
source rapids-configure-sccache
source rapids-date-string
version=$(rapids-generate-version)
git_commit=$(git rev-parse HEAD)
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"
... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/check_style.sh | #!/bin/bash
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
set -euo pipefail
rapids-logger "Create checks conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--output conda \
--file_key checks \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}"... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/test_wheel.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
mkdir -p ./dist
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"
RAPIDS_PY_WHEEL_NAME="cuml_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist
# On arm also need to install CMake because treelite needs to ... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/run_clang_tidy.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
rapids-logger "Create clang_tidy conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--output conda \
--file_key clang_tidy \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSIO... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/build_cpp.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
source rapids-env-update
export CMAKE_GENERATOR=Ninja
rapids-print-env
version=$(rapids-generate-version)
rapids-logger "Begin cpp build"
RAPIDS_PACKAGE_VERSION=${version} rapids-conda-retry mambabuild conda/recipes/libcuml
rapids-uplo... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/test_python_dask.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Common setup steps shared by Python test jobs
source "$(dirname "$0")/test_python_common.sh"
EXITCODE=0
trap "EXITCODE=1" ERR
set +e
rapids-logger "pytest cuml-dask"
cd python/cuml/tests/dask
pytest \
--cache-clear \
--junitxml="${RAPIDS_TESTS_DIR}/jun... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/wheel_smoke_test_cuml.py | """
A simple test for cuML based on scikit-learn.
Adapted from xgboost:
https://raw.githubusercontent.com/rapidsai/xgboost-conda/branch-23.02/recipes/xgboost/test-py-xgboost.py
"""
from cuml.ensemble import RandomForestClassifier
import sklearn.datasets
import sklearn.model_selection
import sklearn.metrics
X, y = skl... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/test_notebooks.sh | #!/bin/bash
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate Notebook testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_notebooks \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPID... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/test_python_singlegpu.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Common setup steps shared by Python test jobs
source "$(dirname "$0")/test_python_common.sh"
EXITCODE=0
trap "EXITCODE=1" ERR
set +e
rapids-logger "pytest cuml single GPU..."
cd python/cuml/tests
pytest \
--numprocesses=8 \
--ignore=dask \
--cache-cl... | 0 |
rapidsai_public_repos/cuml | rapidsai_public_repos/cuml/ci/build_docs.sh | #!/bin/bash
set -euo pipefail
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--output conda \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
rapids-mamba-retry env create --for... | 0 |
rapidsai_public_repos/cuml/ci | rapidsai_public_repos/cuml/ci/release/update-version.sh | #!/bin/bash
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
########################
# cuML Version Updater #
########################
## Usage
# bash update-version.sh <new_version>
# Format is YY.MM.PP - no leading 'v' or trailing 'a'
NEXT_FULL_TAG=$1
# Get current version
CURRENT_TAG=$(git tag --merged HEAD | gre... | 0 |
rapidsai_public_repos/cuml/ci | rapidsai_public_repos/cuml/ci/utils/nbtest.sh | #!/bin/bash
# Copyright (c) 2020-2021, NVIDIA CORPORATION.
MAGIC_OVERRIDE_CODE="
def my_run_line_magic(*args, **kwargs):
g=globals()
l={}
for a in args:
try:
exec(str(a),g,l)
except Exception as e:
print('WARNING: %s\n While executing this magic function code:\n%s\... | 0 |
rapidsai_public_repos/cuml/ci | rapidsai_public_repos/cuml/ci/utils/nbtestlog2junitxml.py | # Copyright (c) 2020, NVIDIA CORPORATION.
#########################
# Generate a junit-xml file from parsing a nbtest log #
#########################
import re
from xml.etree.ElementTree import Element, ElementTree
from os import path
import string
from enum import Enum
startingPatt = re.compile(r"^STARTING: ([\w\.\... | 0 |
rapidsai_public_repos/cuml/ci | rapidsai_public_repos/cuml/ci/checks/black_lists.sh | #!/bin/bash
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
##########################################
# cuML black listed function call Tester #
##########################################
# PR_TARGET_BRANCH is set by the CI environment
git checkout --quiet $PR_TARGET_BRANCH
# Switch back to tip of PR branch
git chec... | 0 |
rapidsai_public_repos/cuml/ci | rapidsai_public_repos/cuml/ci/checks/copyright.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 0 |
rapidsai_public_repos/cuml/thirdparty | rapidsai_public_repos/cuml/thirdparty/LICENSES/LICENSE.scikit_learn | New BSD License
Copyright (c) 2007–2020 The scikit-learn developers.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
a. Redistributions of source code must retain the above copyright notice,
th... | 0 |
rapidsai_public_repos/cuml/thirdparty | rapidsai_public_repos/cuml/thirdparty/LICENSES/LICENSE.faiss | MIT License
Copyright (c) Facebook, Inc. and its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | 0 |
rapidsai_public_repos/cuml/thirdparty | rapidsai_public_repos/cuml/thirdparty/LICENSES/LICENSE.umap | BSD 3-Clause License
Copyright (c) 2017, Leland McInnes
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condition... | 0 |
rapidsai_public_repos/cuml/thirdparty | rapidsai_public_repos/cuml/thirdparty/LICENSES/LICENSE.H2O4GPU | This software contains source code based on [H2O4GPU](https://github.com/h2oai/h2o4gpu), which has the following license terms:
```
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE... | 0 |
rapidsai_public_repos | rapidsai_public_repos/rvc/README.md | # rvc
`rvc` (_RAPIDS version converter_) is a tool built with Golang that automatically
convert a `RAPIDS` version (CalVer) to a `ucx-py` version (SemVer) and vice versa.
## Motivation
In June 2021, RAPIDS moved from a SemVer versioning to a CalVer versioning.
As `ucx-py` is expected to be upstreamd to `ucx`, it is ... | 0 |
rapidsai_public_repos | rapidsai_public_repos/rvc/go.sum | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/aws/aws-lambda-go v1.27.0 h1:aLzrJwdyHoF1A18YeVdJjX8Ixkd+bpogdxVInvHcWjM=
github.com/aws/aws-lambda-go v1.27.0/go.mod h1:jJmlefzPfGnckuHdXX7/80O3BvUUi12XOkbv4w9SGLU=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015... | 0 |
rapidsai_public_repos | rapidsai_public_repos/rvc/go.mod | module github.com/rapidsai/rvc
go 1.17
require (
github.com/aws/aws-lambda-go v1.27.0
github.com/stretchr/testify v1.7.0
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)
| 0 |
rapidsai_public_repos | rapidsai_public_repos/rvc/Makefile | VERSION = $(shell git describe --tags --dirty --always)
LDFLAGS = "-s -w -X github.com/rapidsai/rvc/pkg/version.version=$(VERSION)"
all: build
build: test build_serverless build_cli
build_serverless:
@mkdir -p bin
GOARCH=amd64 GOOS=linux go build -mod=vendor -ldflags=$(LDFLAGS) -o bin/rvc_serverless ./cmd/rvc_serv... | 0 |
rapidsai_public_repos | rapidsai_public_repos/rvc/serverless.yml | service: rvc
frameworkVersion: '3'
provider:
name: aws
runtime: go1.x
lambdaHashingVersion: 20201221
region: us-east-2
logRetentionInDays: 30
memorySize: 1024
deploymentBucket:
name: rapidsai-serverless-deployments
plugins:
- serverless-domain-manager
custom:
customDomain:
autoDomain: true
... | 0 |
rapidsai_public_repos/rvc | rapidsai_public_repos/rvc/vendor/modules.txt | # github.com/aws/aws-lambda-go v1.27.0
## explicit; go 1.12
github.com/aws/aws-lambda-go/events
github.com/aws/aws-lambda-go/lambda
github.com/aws/aws-lambda-go/lambda/handlertrace
github.com/aws/aws-lambda-go/lambda/messages
github.com/aws/aws-lambda-go/lambdacontext
# github.com/davecgh/go-spew v1.1.1
## explicit
git... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/decode.go | //
// Copyright (c) 2011-2019 Canonical Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/writerc.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/apic.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/yamlprivateh.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/scannerc.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation t... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.