Skip to content

Commit 6bd4c7d

Browse files
prepare for categorical encoders
1 parent af1c39e commit 6bd4c7d

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

python/src/lazylearn/preprocessing/__init__.py

Whitespace-only changes.

python/src/lazylearn/preprocessing/encoding/__init__.py

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class OrdinalConverter:
2+
def __init__(
3+
self,
4+
max_cardinality: int = None,
5+
min_support: int = 5,
6+
other_category: bool = True,
7+
method: str = "freq",
8+
):
9+
self.card_max = max_cardinality
10+
self.min_support = min_support
11+
self.other_category = other_category
12+
self.method = method
13+
14+
def convert(self, df, col):
15+
pass

0 commit comments

Comments
 (0)