8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6303af4 + f0d86e8 commit 48117d5Copy full SHA for 48117d5
doc/developers/index.rst
@@ -818,6 +818,7 @@ The default value for ``deep`` should be true.
818
819
The ``set_params`` on the other hand takes as input a dict of the form
820
``'parameter': value`` and sets the parameter of the estimator using this dict.
821
+Return value must be estimator itself.
822
823
While the ``get_params`` mechanism is not essential (see :ref:`cloning` below),
824
the ``set_params`` function is necessary as it is used to set parameters during
@@ -835,6 +836,7 @@ implement the interface is::
835
836
def set_params(self, **parameters):
837
for parameter, value in parameters.items():
838
self.setattr(parameter, value)
839
+ return self
840
841
842
Parameters and init
0 commit comments