Skip to content
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

[ENH] Continuize: Specific options for variables #6181

Merged
merged 18 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions Orange/preprocess/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ class Identity(Transformation):
def transform(self, c):
return c

def __eq__(self, other): # pylint: disable=useless-parent-delegation
return super().__eq__(other)

def __hash__(self):
return super().__hash__()


# pylint: disable=abstract-method
class _Indicator(Transformation):
Expand Down Expand Up @@ -145,6 +151,12 @@ def transform(self, c):
c = c.toarray().ravel()
return self._nan_fixed(c, c == self.value)

def __eq__(self, other): # pylint: disable=useless-parent-delegation
return super().__eq__(other)

def __hash__(self):
return super().__hash__()


class Indicator1(_Indicator):
"""
Expand Down
Loading