Skip to content

Commit

Permalink
Merge pull request #6181 from janezd/continuize-per-variable
Browse files Browse the repository at this point in the history
[ENH] Continuize: Specific options for variables
  • Loading branch information
markotoplak authored Mar 30, 2023
2 parents 75304f2 + fd78b8b commit 45a1eec
Show file tree
Hide file tree
Showing 8 changed files with 1,525 additions and 538 deletions.
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

0 comments on commit 45a1eec

Please sign in to comment.