From 4823150a234ca268db933cac54fe77f8623aa22b Mon Sep 17 00:00:00 2001 From: Nick Becker Date: Mon, 22 Aug 2022 16:48:41 -0400 Subject: [PATCH 1/4] initial set --- python/cuml/cluster/dbscan.pyx | 1 - python/cuml/cluster/kmeans_mg.pyx | 1 - python/cuml/decomposition/base_mg.pyx | 1 - python/cuml/decomposition/pca.pyx | 1 - python/cuml/decomposition/tsvd.pyx | 1 - python/cuml/decomposition/tsvd_mg.pyx | 1 - python/cuml/experimental/linear_model/lars.pyx | 1 - python/cuml/fil/fil.pyx | 1 - 8 files changed, 8 deletions(-) diff --git a/python/cuml/cluster/dbscan.pyx b/python/cuml/cluster/dbscan.pyx index 255ed01bf5..1fee83b332 100644 --- a/python/cuml/cluster/dbscan.pyx +++ b/python/cuml/cluster/dbscan.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import cupy as cp diff --git a/python/cuml/cluster/kmeans_mg.pyx b/python/cuml/cluster/kmeans_mg.pyx index 4a37ace353..75ae6854d5 100644 --- a/python/cuml/cluster/kmeans_mg.pyx +++ b/python/cuml/cluster/kmeans_mg.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import warnings diff --git a/python/cuml/decomposition/base_mg.pyx b/python/cuml/decomposition/base_mg.pyx index a1be3a4537..b6bbc3839a 100644 --- a/python/cuml/decomposition/base_mg.pyx +++ b/python/cuml/decomposition/base_mg.pyx @@ -17,7 +17,6 @@ import ctypes -import cudf import numpy as np import rmm diff --git a/python/cuml/decomposition/pca.pyx b/python/cuml/decomposition/pca.pyx index 4e672f5c73..77b68929ff 100644 --- a/python/cuml/decomposition/pca.pyx +++ b/python/cuml/decomposition/pca.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import cupy as cp import cupyx diff --git a/python/cuml/decomposition/tsvd.pyx b/python/cuml/decomposition/tsvd.pyx index ae1abe171d..7bbbb38e28 100644 --- a/python/cuml/decomposition/tsvd.pyx +++ b/python/cuml/decomposition/tsvd.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np from enum import IntEnum diff --git a/python/cuml/decomposition/tsvd_mg.pyx b/python/cuml/decomposition/tsvd_mg.pyx index 6af188dcd8..f40f934c0d 100644 --- a/python/cuml/decomposition/tsvd_mg.pyx +++ b/python/cuml/decomposition/tsvd_mg.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import rmm diff --git a/python/cuml/experimental/linear_model/lars.pyx b/python/cuml/experimental/linear_model/lars.pyx index ad384dc333..2a2780f3ab 100644 --- a/python/cuml/experimental/linear_model/lars.pyx +++ b/python/cuml/experimental/linear_model/lars.pyx @@ -20,7 +20,6 @@ # cython: language_level = 3 import ctypes -import cudf import numpy as np import cupy as cp import warnings diff --git a/python/cuml/fil/fil.pyx b/python/cuml/fil/fil.pyx index 8908b0fc4a..8a71368fb9 100644 --- a/python/cuml/fil/fil.pyx +++ b/python/cuml/fil/fil.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import copy -import cudf import ctypes import math import numpy as np From 314bc308aa88d856805ecdebae0f49d53a154572 Mon Sep 17 00:00:00 2001 From: Nick Becker Date: Mon, 22 Aug 2022 16:51:03 -0400 Subject: [PATCH 2/4] next set --- python/cuml/linear_model/base.pyx | 1 - python/cuml/linear_model/base_mg.pyx | 1 - python/cuml/neighbors/kneighbors_regressor.pyx | 1 - python/cuml/neighbors/nearest_neighbors.pyx | 1 - python/cuml/random_projection/random_projection.pyx | 1 - python/cuml/solvers/cd_mg.pyx | 1 - python/cuml/svm/svm_base.pyx | 1 - python/cuml/svm/svr.pyx | 1 - 8 files changed, 8 deletions(-) diff --git a/python/cuml/linear_model/base.pyx b/python/cuml/linear_model/base.pyx index 130fdac78f..e4a58ac5f4 100644 --- a/python/cuml/linear_model/base.pyx +++ b/python/cuml/linear_model/base.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import cuml.internals import numpy as np import warnings diff --git a/python/cuml/linear_model/base_mg.pyx b/python/cuml/linear_model/base_mg.pyx index 1959f50e06..984c1a0d82 100644 --- a/python/cuml/linear_model/base_mg.pyx +++ b/python/cuml/linear_model/base_mg.pyx @@ -17,7 +17,6 @@ import ctypes -import cudf import cuml.common.opg_data_utils_mg as opg import numpy as np import rmm diff --git a/python/cuml/neighbors/kneighbors_regressor.pyx b/python/cuml/neighbors/kneighbors_regressor.pyx index b1508da773..36bf905172 100644 --- a/python/cuml/neighbors/kneighbors_regressor.pyx +++ b/python/cuml/neighbors/kneighbors_regressor.pyx @@ -28,7 +28,6 @@ from cuml.common.mixins import FMajorInputTagMixin import numpy as np -import cudf from cython.operator cimport dereference as deref diff --git a/python/cuml/neighbors/nearest_neighbors.pyx b/python/cuml/neighbors/nearest_neighbors.pyx index ac5b15c03f..02036530c6 100644 --- a/python/cuml/neighbors/nearest_neighbors.pyx +++ b/python/cuml/neighbors/nearest_neighbors.pyx @@ -21,7 +21,6 @@ import typing import numpy as np import cupy as cp import cupyx -import cudf import ctypes import warnings import math diff --git a/python/cuml/random_projection/random_projection.pyx b/python/cuml/random_projection/random_projection.pyx index a5b3d6c913..895e9c3b87 100644 --- a/python/cuml/random_projection/random_projection.pyx +++ b/python/cuml/random_projection/random_projection.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ -import cudf import numpy as np from libc.stdint cimport uintptr_t diff --git a/python/cuml/solvers/cd_mg.pyx b/python/cuml/solvers/cd_mg.pyx index 37530863af..c6a3b2d262 100644 --- a/python/cuml/solvers/cd_mg.pyx +++ b/python/cuml/solvers/cd_mg.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import rmm diff --git a/python/cuml/svm/svm_base.pyx b/python/cuml/svm/svm_base.pyx index a830c11942..45d600ec2e 100644 --- a/python/cuml/svm/svm_base.pyx +++ b/python/cuml/svm/svm_base.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import cupy import numpy as np diff --git a/python/cuml/svm/svr.pyx b/python/cuml/svm/svr.pyx index 381cd1338f..302a8819ec 100644 --- a/python/cuml/svm/svr.pyx +++ b/python/cuml/svm/svr.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import cupy import numpy as np From e565371b673952b62d27e363668d286c299190f5 Mon Sep 17 00:00:00 2001 From: Nick Becker Date: Mon, 22 Aug 2022 17:35:33 -0400 Subject: [PATCH 3/4] another batch --- python/cuml/cluster/kmeans.pyx | 1 - python/cuml/linear_model/linear_regression.pyx | 1 - python/cuml/linear_model/ridge_mg.pyx | 1 - python/cuml/manifold/t_sne.pyx | 1 - python/cuml/manifold/umap.pyx | 1 - python/cuml/metrics/accuracy.pyx | 1 - python/cuml/solvers/cd.pyx | 1 - python/cuml/solvers/qn.pyx | 1 - python/cuml/solvers/sgd.pyx | 1 - 9 files changed, 9 deletions(-) diff --git a/python/cuml/cluster/kmeans.pyx b/python/cuml/cluster/kmeans.pyx index 0d758d8a4c..2a588313fe 100644 --- a/python/cuml/cluster/kmeans.pyx +++ b/python/cuml/cluster/kmeans.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import rmm import warnings diff --git a/python/cuml/linear_model/linear_regression.pyx b/python/cuml/linear_model/linear_regression.pyx index d421ab1652..4fbec28db9 100644 --- a/python/cuml/linear_model/linear_regression.pyx +++ b/python/cuml/linear_model/linear_regression.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import warnings diff --git a/python/cuml/linear_model/ridge_mg.pyx b/python/cuml/linear_model/ridge_mg.pyx index d533270736..4f3d9de803 100644 --- a/python/cuml/linear_model/ridge_mg.pyx +++ b/python/cuml/linear_model/ridge_mg.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np import rmm diff --git a/python/cuml/manifold/t_sne.pyx b/python/cuml/manifold/t_sne.pyx index 9956a1a027..11d576f16f 100644 --- a/python/cuml/manifold/t_sne.pyx +++ b/python/cuml/manifold/t_sne.pyx @@ -18,7 +18,6 @@ # cython: boundscheck = False # cython: wraparound = False -import cudf import ctypes import numpy as np import inspect diff --git a/python/cuml/manifold/umap.pyx b/python/cuml/manifold/umap.pyx index 860da1d158..a37b9cfc10 100644 --- a/python/cuml/manifold/umap.pyx +++ b/python/cuml/manifold/umap.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import typing -import cudf import ctypes import numpy as np import pandas as pd diff --git a/python/cuml/metrics/accuracy.pyx b/python/cuml/metrics/accuracy.pyx index d6f50e1aa9..d1c22de408 100644 --- a/python/cuml/metrics/accuracy.pyx +++ b/python/cuml/metrics/accuracy.pyx @@ -20,7 +20,6 @@ import numpy as np from libc.stdint cimport uintptr_t -import cudf import cuml.internals diff --git a/python/cuml/solvers/cd.pyx b/python/cuml/solvers/cd.pyx index 48586cdcb0..7e201b04f4 100644 --- a/python/cuml/solvers/cd.pyx +++ b/python/cuml/solvers/cd.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np from numba import cuda diff --git a/python/cuml/solvers/qn.pyx b/python/cuml/solvers/qn.pyx index da787cc427..35ca97cc45 100644 --- a/python/cuml/solvers/qn.pyx +++ b/python/cuml/solvers/qn.pyx @@ -15,7 +15,6 @@ # distutils: language = c++ -import cudf import cupy as cp import numpy as np diff --git a/python/cuml/solvers/sgd.pyx b/python/cuml/solvers/sgd.pyx index 952e1e80a8..c59d104220 100644 --- a/python/cuml/solvers/sgd.pyx +++ b/python/cuml/solvers/sgd.pyx @@ -18,7 +18,6 @@ import typing import ctypes -import cudf import numpy as np import cupy as cp From cedec13ce4e96a902ba6dc8d34fea240b0859674 Mon Sep 17 00:00:00 2001 From: Nick Becker Date: Mon, 22 Aug 2022 17:43:55 -0400 Subject: [PATCH 4/4] yet again --- python/cuml/decomposition/pca_mg.pyx | 1 - python/cuml/linear_model/linear_regression_mg.pyx | 1 - python/cuml/linear_model/ridge.pyx | 1 - python/cuml/metrics/trustworthiness.pyx | 1 - python/cuml/neighbors/kneighbors_classifier.pyx | 1 - 5 files changed, 5 deletions(-) diff --git a/python/cuml/decomposition/pca_mg.pyx b/python/cuml/decomposition/pca_mg.pyx index a477f79ecb..72740e7db8 100644 --- a/python/cuml/decomposition/pca_mg.pyx +++ b/python/cuml/decomposition/pca_mg.pyx @@ -17,7 +17,6 @@ import ctypes -import cudf import numpy as np from enum import IntEnum diff --git a/python/cuml/linear_model/linear_regression_mg.pyx b/python/cuml/linear_model/linear_regression_mg.pyx index d918a80913..1d5e3ffe57 100644 --- a/python/cuml/linear_model/linear_regression_mg.pyx +++ b/python/cuml/linear_model/linear_regression_mg.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ import ctypes -import cudf import cuml.common.opg_data_utils_mg as opg import numpy as np import rmm diff --git a/python/cuml/linear_model/ridge.pyx b/python/cuml/linear_model/ridge.pyx index 484461bab1..4b76a80fc3 100644 --- a/python/cuml/linear_model/ridge.pyx +++ b/python/cuml/linear_model/ridge.pyx @@ -17,7 +17,6 @@ # distutils: language = c++ import ctypes -import cudf import numpy as np from collections import defaultdict from numba import cuda diff --git a/python/cuml/metrics/trustworthiness.pyx b/python/cuml/metrics/trustworthiness.pyx index 35b074c500..bf8523fd0a 100644 --- a/python/cuml/metrics/trustworthiness.pyx +++ b/python/cuml/metrics/trustworthiness.pyx @@ -16,7 +16,6 @@ # distutils: language = c++ -import cudf import numpy as np import warnings diff --git a/python/cuml/neighbors/kneighbors_classifier.pyx b/python/cuml/neighbors/kneighbors_classifier.pyx index 1778415e86..5d9886bb86 100644 --- a/python/cuml/neighbors/kneighbors_classifier.pyx +++ b/python/cuml/neighbors/kneighbors_classifier.pyx @@ -31,7 +31,6 @@ from cuml.common.mixins import FMajorInputTagMixin import numpy as np import cupy as cp -import cudf from cython.operator cimport dereference as deref