[BUG] BaseObject._get_init_signature()
if statement never True?
#65
Labels
Milestone
BaseObject._get_init_signature()
if statement never True?
#65
Describe the bug
BaseObject._get_init_signature()
returns the init signature of aBaseObject
. It starts off with code to shortcut the rest of the calculations if we notice that the returned init dunder is the same for the basic Pythonobject
. This never seems to be True sinceBaseObject
currently inherits from scikit-learn'sBaseEstimator
.A snapshot of the related code (from the beginning lines of the
_get_init_signature
class method:For example, the following indicates that
BaseObject's
will not return True for the if condition:However, this code will be useful once we remove the inherittance from scikit-learn's
BaseEstimator
:Expected behavior
Conditional code should sometimes be True or it is not needed. In this case, we will need the code later once we finish refactoring so we don't inherit from
BaseEstimator
. Simiarly, the part of this code accounting for "deprecated_original" is related to how scikit-learn handles/handled deprecation. We may or may not want to retain that portion.This issue is just to raise awareness in the meantime.
The text was updated successfully, but these errors were encountered: