8000 CLN Removes unused fused dtype in pairwise distances by thomasjpfan · Pull Request #22727 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

CLN Removes unused fused dtype in pairwise distances #22727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sklearn/metrics/_dist_metrics.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ from libc.math cimport fabs, sqrt, exp, pow, cos, sin, asin
cdef DTYPE_t INF = np.inf

from scipy.sparse import csr_matrix, issparse
from ..utils._typedefs cimport DTYPE_t, ITYPE_t, DITYPE_t, DTYPECODE
from ..utils._typedefs cimport DTYPE_t, ITYPE_t, DTYPECODE
from ..utils._typedefs import DTYPE, ITYPE
from ..utils._readonly_array_wrapper import ReadonlyArrayWrapper
from ..utils import check_array
Expand Down
2 changes: 1 addition & 1 deletion sklearn/metrics/_pairwise_distances_reduction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ from ..utils._cython_blas cimport (
)
from ..utils._heap cimport simultaneous_sort, heap_push
from ..utils._openmp_helpers cimport _openmp_thread_num
from ..utils._typedefs cimport ITYPE_t, DTYPE_t, DITYPE_t
from ..utils._typedefs cimport ITYPE_t, DTYPE_t
from ..utils._typedefs cimport ITYPECODE, DTYPECODE

from numbers import Integral, Real
Expand Down
5 changes: 0 additions & 5 deletions sklearn/utils/_typedefs.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ cdef enum:
# Index/integer type.
# WARNING: ITYPE_t must be a signed integer type or you will have a bad time!
ctypedef np.intp_t ITYPE_t # WARNING: should match ITYPE in typedefs.pyx

# Fused type for certain operations
ctypedef fused DITYPE_t:
ITYPE_t
DTYPE_t
0