8000 MNT Reset transform_output default in example to fix doc build build … · scikit-learn/scikit-learn@7250c69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7250c69

Browse files
authored
MNT Reset transform_output default in example to fix doc build build (#26269)
1 parent 17ce605 commit 7250c69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/preprocessing/plot_target_encoder_cross_val.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,8 @@
158158
# :class:`TargetEncoder` is a part of a :class:`~sklearn.pipeline.Pipeline` and the
159159
# pipeline is fitted, the pipeline will correctly call
160160
# :meth:`TargetEncoder.fit_transform` and pass the encoding along.
161+
162+
# %%
163+
# This resets `transform_output` to its default value to avoid impacting other
164+
# examples when generating the scikit-learn documentation
165+
sklearn.set_config(transform_output="default")

0 commit comments

Comments
 (0)
0