10000 CLN Update var name in `TargetEncoder` to make consistent (#27033) · scikit-learn/scikit-learn@5ecfa8d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ecfa8d

Browse files
authored
CLN Update var name in TargetEncoder to make consistent (#27033)
1 parent 687465f commit 5ecfa8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/preprocessing/_target_encoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ def transform(self, X):
273273
X_trans : ndarray of shape (n_samples, n_features)
274274
Transformed input.
275275
"""
276-
X_ordinal, X_valid = self._transform(
276+
X_ordinal, X_known_mask = self._transform(
277277
X, handle_unknown="ignore", force_all_finite="allow-nan"
278278
)
279279
X_out = np.empty_like(X_ordinal, dtype=np.float64)
280280
self._transform_X_ordinal(
281281
X_out,
282282
X_ordinal,
283-
~X_valid,
283+
~X_known_mask,
284284
slice(None),
285285
self.encodings_,
286286
self.target_mean_,

0 commit comments

Comments
 (0)
0