Skip to content

[ENH] Correct broken source links for set_params and get_params in Aeon estimator docs #2754

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
37 changes: 37 additions & 0 deletions aeon/base/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,23 @@ def get_class_tag(

return tag_value

def get_params(self, deep=True):
"""
Get parameters for this estimator.

Parameters
----------
deep : bool, default=True
If True, will return the parameters for this estimator and
contained subobjects that are estimators.

Returns
-------
params : dict
Parameter names mapped to their values.
"""
return super().get_params(deep=deep)

def get_tags(self):
"""
Get tags from estimator.
Expand Down Expand Up @@ -280,6 +297,26 @@ def get_tag(self, tag_name, raise_error=True, tag_value_default=None):

return tag_value

def set_params(self, **params):
"""Set the parameters of this estimator.

The method works on simple estimators as well as on nested objects
(such as :class:`~sklearn.pipeline.Pipeline`). The latter have
parameters of the form ``<component>__<parameter>`` so that it's
possible to update each component of a nested object.

Parameters
----------
**params : dict
Estimator parameters.

Returns
-------
self : estimator instance
Estimator instance.
"""
super().set_params(**params)

def set_tags(self, **tag_dict):
"""
Set dynamic tags to given values.
Expand Down
Loading