8000 MNT Exported `WeightingStrategy` for `*_classmode` reductions (#27030) · scikit-learn/scikit-learn@392c084 · GitHub
[go: up one dir, main page]

Skip to content

Commit 392c084

Browse files
authored
MNT Exported WeightingStrategy for *_classmode reductions (#27030)
1 parent 3725ac1 commit 392c084

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

sklearn/metrics/_pairwise_distances_reduction/_argkmin_classmode.pyx.tp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ from ...utils._typedefs cimport intp_t, float64_t
88
import numpy as np
99
from scipy.sparse import issparse
1010
from sklearn.utils.fixes import threadpool_limits
11-
12-
cpdef enum WeightingStrategy:
13-
uniform = 0
14-
# TODO: Implement the following options, most likely in
15-
# `weighted_histogram_mode`
16-
distance = 1
17-
callable = 2
11+
from ._classmode cimport WeightingStrategy
1812

1913
{{for name_suffix in ["32", "64"]}}
2014
from ._argkmin cimport ArgKmin{{name_suffix}}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line ch 599A ange
@@ -0,0 +1,5 @@
1+
cpdef enum WeightingStrategy:
2+
uniform = 0
3+
# TODO: Implement the following options in weighted_histogram_mode
4+
distance = 1
5+
callable = 2

0 commit comments

Comments
 (0)
0