Skip to content

Commit

Permalink
Remove unused cuDF imports (rapidsai#4873)
Browse files Browse the repository at this point in the history
For housekeeping, this PR removes unused cuDF imports across a variety of files.

It does not refactor any code that currently relies on cuDF.

Authors:
  - Nick Becker (https://github.com/beckernick)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#4873
  • Loading branch information
beckernick authored and divyegala committed Sep 2, 2022
1 parent ef55502 commit ac68939
Show file tree
Hide file tree
Showing 30 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion python/cuml/cluster/dbscan.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
import cupy as cp

Expand Down
1 change: 0 additions & 1 deletion python/cuml/cluster/kmeans.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
import rmm
import warnings
Expand Down
1 change: 0 additions & 1 deletion python/cuml/cluster/kmeans_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
import warnings

Expand Down
1 change: 0 additions & 1 deletion python/cuml/decomposition/base_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


import ctypes
import cudf
import numpy as np

import rmm
Expand Down
1 change: 0 additions & 1 deletion python/cuml/decomposition/pca.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
import cupy as cp
import cupyx
Expand Down
1 change: 0 additions & 1 deletion python/cuml/decomposition/pca_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


import ctypes
import cudf
import numpy as np
from enum import IntEnum

Expand Down
1 change: 0 additions & 1 deletion python/cuml/decomposition/tsvd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np

from enum import IntEnum
Expand Down
1 change: 0 additions & 1 deletion python/cuml/decomposition/tsvd_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np

import rmm
Expand Down
1 change: 0 additions & 1 deletion python/cuml/experimental/linear_model/lars.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# cython: language_level = 3

import ctypes
import cudf
import numpy as np
import cupy as cp
import warnings
Expand Down
1 change: 0 additions & 1 deletion python/cuml/fil/fil.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import copy
import cudf
import ctypes
import math
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion python/cuml/linear_model/base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import cuml.internals
import numpy as np
import warnings
Expand Down
1 change: 0 additions & 1 deletion python/cuml/linear_model/base_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


import ctypes
import cudf
import cuml.common.opg_data_utils_mg as opg
import numpy as np
import rmm
Expand Down
1 change: 0 additions & 1 deletion python/cuml/linear_model/linear_regression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
import warnings

Expand Down
1 change: 0 additions & 1 deletion python/cuml/linear_model/linear_regression_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion python/cuml/linear_model/ridge.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
from collections import defaultdict
from numba import cuda
Expand Down
1 change: 0 additions & 1 deletion python/cuml/linear_model/ridge_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np

import rmm
Expand Down
1 change: 0 additions & 1 deletion python/cuml/manifold/t_sne.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# cython: boundscheck = False
# cython: wraparound = False

import cudf
import ctypes
import numpy as np
import inspect
Expand Down
1 change: 0 additions & 1 deletion python/cuml/manifold/umap.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# distutils: language = c++

import typing
import cudf
import ctypes
import numpy as np
import pandas as pd
Expand Down
1 change: 0 additions & 1 deletion python/cuml/metrics/accuracy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import numpy as np

from libc.stdint cimport uintptr_t

import cudf

import cuml.internals

Expand Down
1 change: 0 additions & 1 deletion python/cuml/metrics/trustworthiness.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

# distutils: language = c++

import cudf
import numpy as np
import warnings

Expand Down
1 change: 0 additions & 1 deletion python/cuml/neighbors/kneighbors_classifier.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion python/cuml/neighbors/kneighbors_regressor.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ from cuml.common.mixins import FMajorInputTagMixin

import numpy as np

import cudf

from cython.operator cimport dereference as deref

Expand Down
1 change: 0 additions & 1 deletion python/cuml/neighbors/nearest_neighbors.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import typing
import numpy as np
import cupy as cp
import cupyx
import cudf
import ctypes
import warnings
import math
Expand Down
1 change: 0 additions & 1 deletion python/cuml/random_projection/random_projection.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

# distutils: language = c++

import cudf
import numpy as np

from libc.stdint cimport uintptr_t
Expand Down
1 change: 0 additions & 1 deletion python/cuml/solvers/cd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np

from numba import cuda
Expand Down
1 change: 0 additions & 1 deletion python/cuml/solvers/cd_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# distutils: language = c++

import ctypes
import cudf
import numpy as np
import rmm

Expand Down
1 change: 0 additions & 1 deletion python/cuml/solvers/qn.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

# distutils: language = c++

import cudf
import cupy as cp
import numpy as np

Expand Down
1 change: 0 additions & 1 deletion python/cuml/solvers/sgd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import typing

import ctypes
import cudf
import numpy as np
import cupy as cp

Expand Down
1 change: 0 additions & 1 deletion python/cuml/svm/svm_base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# distutils: language = c++

import ctypes
import cudf
import cupy
import numpy as np

Expand Down
1 change: 0 additions & 1 deletion python/cuml/svm/svr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# distutils: language = c++

import ctypes
import cudf
import cupy
import numpy as np

Expand Down

0 comments on commit ac68939

Please sign in to comment.