Skip to content

Commit

Permalink
fix padding value
Browse files Browse the repository at this point in the history
  • Loading branch information
joseprsm committed Sep 30, 2022
1 parent c1b6f6a commit 113bfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rexify/features/transform/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def fit(self, X: pd.DataFrame, *_):
self._user_id = get_target_id(self.schema, "user")[0]
self._item_id = get_target_id(self.schema, "item")[0]
self._columns = [col for col in X.columns if col != self._user_id]
self._padding = [-1] * (self._window_size - 2)
self._padding = [X[self._item_id].max() + 1] * (self._window_size - 2)
return self

def transform(self, X: pd.DataFrame):
Expand Down

0 comments on commit 113bfae

Please sign in to comment.