From d82dd8a757d5d837c9c9b79d3c89347b66111aab Mon Sep 17 00:00:00 2001 From: Kaustbh Date: Fri, 18 Apr 2025 09:40:47 +0530 Subject: [PATCH] Correct broken source links for `set_params` and `get_params` in Aeon estimator docs --- aeon/base/_base.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/aeon/base/_base.py b/aeon/base/_base.py index 5a336c7397..2176e54262 100644 --- a/aeon/base/_base.py +++ b/aeon/base/_base.py @@ -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. @@ -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 ``__`` 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.