-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] fix faulty
BaseObject.__eq__
and deep_equals
if an attribut…
…e or nested structure contains `float` (#4109) This fixes `deep_equals` logic and reverse dependency `BaseObject.__eq__` for the case that parameters or nested objects contained an `float`. Incorrectly, any two floats were considered equal. This is a consequence of erroneous logic to cover the case of `np.nan`. For more context, also see sktime/skbase#111 Tests were also added to ensure that the `float` and `np.nan` case are both covered correctly.
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters