8000 MNT change versions to 1.2 by adrinjalali · Pull Request #23341 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
8000

MNT change versions to 1.2 #23341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sklearn/metrics/_scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def __call__(self, estimator, X, y_true, **kwargs):
Other parameters passed to the scorer, e.g. sample_weight.
Refer to :func:`set_score_request` for more details.

.. versionadded:: 1.1
.. versionadded:: 1.2

Returns
-------
Expand Down Expand Up @@ -269,7 +269,7 @@ def set_score_request(self, **kwargs):
Please see :ref:`User Guide <metadata_routing>` on how the routing
mechanism works.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -317,7 +317,7 @@ def _score(self, method_caller, estimator, X, y_true, **kwargs):
Other parameters passed to the scorer, e.g. sample_weight.
Refer to :func:`set_score_request` for more details.

.. versionadded:: 1.1
.. versionadded:: 1.2

Returns
-------
Expand Down Expand Up @@ -362,7 +362,7 @@ def _score(self, method_caller, clf, X, y, **kwargs):
Other parameters passed to the scorer, e.g. sample_weight.
Refer to :func:`set_score_request` for more details.

.. versionadded:: 1.1
.. versionadded:: 1.2

Returns
-------
Expand Down Expand Up @@ -426,7 +426,7 @@ def _score(self, method_caller, clf, X, y, **kwargs):
Other parameters passed to the scorer, e.g. sample_weight.
Refer to :func:`set_score_request` for more details.

.. versionadded:: 1.1
.. versionadded:: 1.2

Returns
-------
Expand Down Expand Up @@ -531,7 +531,7 @@ def __call__(self, estimator, *args, **kwargs):
def get_metadata_routing(self):
"""Get requested data properties.

.. versionadded:: 1.1
.. versionadded:: 1.2

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion sklearn/model_selection/_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class GroupsComsumerMixin(_MetadataRequester):
This Mixin makes the object to request ``groups`` by default as
``REQUESTED``.

.. versionadded:: 1.1
.. versionadded:: 1.2
"""

__metadata_request__split = {"groups": RequestType.REQUESTED}
Expand Down
20 changes: 10 additions & 10 deletions sklearn/utils/_metadata_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class RequestType(Enum):
"""A metadata is requested either with a string alias or this enum.

.. versionadded:: 1.1
.. versionadded:: 1.2
"""

# Metadata is not requested. It will not be routed to the object having the
Expand Down Expand Up @@ -116,7 +116,7 @@ def is_valid(cls, item):
Please see :ref:`User Guide <metadata_routing>` on how the routing
mechanism works.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -156,7 +156,7 @@ class MethodMetadataRequest:

Refer to :class:`MetadataRequest` for how this class is used.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -336,7 +336,7 @@ class MetadataRequest:
Consumer-only classes such as simple estimators return a serialized
version of this class as the output of `get_metadata_routing()`.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -450,7 +450,7 @@ class MethodMapping:
Iterating through an instance of this class will yield named
``MethodPair(callee, caller)`` tuples.

.. versionadded:: 1.1
.. versionadded:: 1.2
"""

def __init__(self):
Expand Down Expand Up @@ -547,7 +547,7 @@ class MetadataRouter:
:class:`~utils.metadata_requests.MetadataRequest` or a
:class:`~utils.metadata_requests.MetadataRouter` instance.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -842,7 +842,7 @@ def get_routing_for_object(obj=None):
intput, such that changing the output of this function will not change the
original object.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -880,7 +880,7 @@ class RequestMethod:
"""
A descriptor for request methods.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down Expand Up @@ -969,7 +969,7 @@ def func(**kw):
class _MetadataRequester:
"""Mixin class for adding metadata request functionality.

.. versionadded:: 1.1
.. versionadded:: 1.2
"""

def __init_subclass__(cls, **kwargs):
Expand Down Expand Up @@ -1129,7 +1129,7 @@ def process_routing(obj, method, other_params, **kwargs):
a call to this function would be:
``process_routing(self, fit_params, sample_weight=sample_weight)``.

.. versionadded:: 1.1
.. versionadded:: 1.2

Parameters
----------
Expand Down
0