Skip to content

Commit

Permalink
Added __slots__ to the padding transformer
Browse files Browse the repository at this point in the history
Signed-off-by: mboussarov <[email protected]>
  • Loading branch information
mboussarov committed Jun 11, 2024
1 parent 8b87771 commit 38a53c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions numalogic/transforms/_stateless.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@ class FlattenVectorWithPadding(StatelessTransformer):
"""

__slots__ = (
"features",
"flatten_features",
"padding_with",
"padding_features",
"flatten_indexes",
"padding_indexes",
)

@staticmethod
def _feature_indexes(features_all: list[str], features: list[str]) -> list[int]:
return [features_all.index(f) for f in features]
Expand Down

0 comments on commit 38a53c6

Please sign in to comment.