8000 reverting changes for _endcoder.py file · scikit-learn/scikit-learn@b6b2d72 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b6b2d72

Browse files
committed
reverting changes for _endcoder.py file
1 parent 30aede8 commit b6b2d72

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

sklearn/preprocessing/_encoders.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,9 @@ def _transform(
229229
X_int[:, i] = _encode(Xi, uniques=self.categories_[i], check_unknown=False)
230230
if columns_with_unknown:
231231
warnings.warn(
232-
(
233-
"Found unknown categories in columns "
234-
f"{columns_with_unknown} during transform. These "
235-
"unknown categories will be encoded as all zeros"
236-
),
232+
"Found unknown categories in columns "
233+
f"{columns_with_unknown} during transform. These "
234+
"unknown categories will be encoded as all zeros",
237235
UserWarning,
238236
)
239237

@@ -975,11 +973,9 @@ def fit(self, X, y=None):
975973

976974
if self.sparse != "deprecated":
977975
warnings.warn(
978-
(
979-
"`sparse` was renamed to `sparse_output` in version 1.2 and "
980-
"will be removed in 1.4. `sparse_output` is ignored unless you "
981-
"leave `sparse` to its default value."
982-
),
976+
"`sparse` was renamed to `sparse_output` in version 1.2 and "
977+
"will be removed in 1.4. `sparse_output` is ignored unless you "
978+
"leave `sparse` to its default value.",
983979
FutureWarning,
984980
)
985981
self.sparse_output = self.sparse

0 commit comments

Comments
 (0)
0