8000 DOC Fix sphinx warnings in example (#26633) · scikit-learn/scikit-learn@94c054d · GitHub
[go: up one dir, main page]

Skip to content

Commit 94c054d

Browse files
authored
DOC Fix sphinx warnings in example (#26633)
1 parent 8c054b6 commit 94c054d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

examples/miscellaneous/plot_metadata_routing.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ def predict(self, X, **predict_params):
408408

409409
# %%
410410
# - Alias only on the sub-estimator. This is useful if we don't want the
411-
# meta-estimator to use the metadata, and we only want the metadata to be used
412-
# by the sub-estimator.
411+
# meta-estimator to use the metadata, and we only want the metadata to be used
412+
# by the sub-estimator.
413413
est = RouterConsumerClassifier(
414414
estimator=ExampleClassifier().set_fit_request(sample_weight="aliased_sample_weight")
415415
).set_fit_request(sample_weight=True)
@@ -621,9 +621,10 @@ def predict(self, X):
621621
# want to have a scikit-learn compatible estimator, without depending on the
622622
# scikit-learn package. If the following conditions are met, you do NOT need to
623623
# modify your code at all:
624-
# - your estimator inherits from :class:`~base.BaseEstimator`
625-
# - the parameters consumed by your estimator's methods, e.g. ``fit``, are
626-
# explicitly defined in the method's signature, as opposed to being
627-
# ``*args`` or ``*kwargs``.
628-
# - you do not route any metadata to the underlying objects, i.e. you're not a
629-
# *router*.
624+
#
625+
# - your estimator inherits from :class:`~base.BaseEstimator`
626+
# - the parameters consumed by your estimator's methods, e.g. ``fit``, are
627+
# explicitly defined in the method's signature, as opposed to being
628+
# ``*args`` or ``*kwargs``.
629+
# - you do not route any metadata to the underlying objects, i.e. you're not a
630+
# *router*.

0 commit comments

Comments
 (0)
0