replay-rec 0.20.2__py3-none-any.whl → 0.20.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
replay/__init__.py CHANGED
@@ -4,4 +4,4 @@
4
4
  # functionality removed in Python 3.12 is used in downstream packages (like lightfm)
5
5
  import setuptools as _
6
6
 
7
- __version__ = "0.20.2"
7
+ __version__ = "0.20.3"
@@ -125,11 +125,17 @@ class SequentialDataset(abc.ABC):
125
125
 
126
126
  @staticmethod
127
127
  def _convert_array_to_list(df):
128
- return df.map(lambda x: x.tolist() if isinstance(x, np.ndarray) else x)
128
+ df_converted = pd.DataFrame()
129
+ for feature in df.columns:
130
+ df_converted[feature] = df[feature].map(lambda x: x.tolist() if isinstance(x, np.ndarray) else x)
131
+ return df_converted
129
132
 
130
133
  @staticmethod
131
134
  def _convert_list_to_array(df):
132
- return df.map(lambda x: np.array(x) if isinstance(x, list) else x)
135
+ df_converted = pd.DataFrame()
136
+ for feature in df.columns:
137
+ df_converted[feature] = df[feature].map(lambda x: np.array(x) if isinstance(x, list) else x)
138
+ return df_converted
133
139
 
134
140
 
135
141
  class PandasSequentialDataset(SequentialDataset):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: replay-rec
3
- Version: 0.20.2
3
+ Version: 0.20.3
4
4
  Summary: RecSys Library
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- replay/__init__.py,sha256=EMBA8TgTenz2iXuIiy5uFEcdJ7OduVzd_qSIBcgPfP4,225
1
+ replay/__init__.py,sha256=2Y-XWVf6G7EZYVo5MwU5aWfw38ZhbmBLHuki47tqPrI,225
2
2
  replay/data/__init__.py,sha256=g5bKRyF76QL_BqlED-31RnS8pBdcyj9loMsx5vAG_0E,301
3
3
  replay/data/dataset.py,sha256=yQDc8lfphQYfHpm_T1MhnG8_GyM4ONyxJoFc1rUgdJ8,30755
4
4
  replay/data/dataset_utils/__init__.py,sha256=9wUvG8ZwGUvuzLU4zQI5FDcH0WVVo5YLN2ey3DterP0,55
@@ -6,7 +6,7 @@ replay/data/dataset_utils/dataset_label_encoder.py,sha256=bxuJPhShFZBok7bQZYGNMV
6
6
  replay/data/nn/__init__.py,sha256=nj2Ep-tduuQkc-TnBkvN8-rDnFbcWO2oZrfcXl9M3C8,1122
7
7
  replay/data/nn/schema.py,sha256=h1KgaNV-hgN9Vpt24c92EmeMpm_8W0s9a2M0wLxJHYk,17101
8
8
  replay/data/nn/sequence_tokenizer.py,sha256=_9fBF-84jdn8Pa3pFKIr6prUjNYCc6BVzwRl9VSleKQ,37419
9
- replay/data/nn/sequential_dataset.py,sha256=qthp87SQ44VpgoH3RKsqm6CxCeQyApn58l7_16txAZM,11303
9
+ replay/data/nn/sequential_dataset.py,sha256=JNmPjVrrBhModj-yrkExl28oCm1gbdU8z4nMfB5PQko,11565
10
10
  replay/data/nn/torch_sequential_dataset.py,sha256=QSh4IM2vzAF095_ZMC1gMqZj9slHXos9gfx_R_DlpGM,11545
11
11
  replay/data/nn/utils.py,sha256=Ic3G4yZRIzBYXLmwP1VstlZXPNR7AYGCc5EyZAERp5c,3297
12
12
  replay/data/schema.py,sha256=JmYLCrNgBS5oq4O_PT724Gr1pDurHEykcqV8Xaj0XTw,15922
@@ -131,8 +131,8 @@ replay/utils/session_handler.py,sha256=fQo2wseow8yuzKnEXT-aYAXcQIgRbTTXp0v7g1VVi
131
131
  replay/utils/spark_utils.py,sha256=GbRp-MuUoO3Pc4chFvlmo9FskSlRLeNlC3Go5pEJ6Ok,27411
132
132
  replay/utils/time.py,sha256=J8asoQBytPcNw-BLGADYIsKeWhIoN1H5hKiX9t2AMqo,9376
133
133
  replay/utils/types.py,sha256=rD9q9CqEXgF4yy512Hv2nXclvwcnfodOnhBZ1HSUI4c,1260
134
- replay_rec-0.20.2.dist-info/METADATA,sha256=p6_RHj2GamGz9NJpmIQW3mRKn_kbBaKyYkQXgOnSYEg,13562
135
- replay_rec-0.20.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
136
- replay_rec-0.20.2.dist-info/licenses/LICENSE,sha256=rPmcA7UrHxBChEAAlJyE24qUWKKl9yLQXxFsKeg_LX4,11344
137
- replay_rec-0.20.2.dist-info/licenses/NOTICE,sha256=k0bo4KHiHLRax5K3XKTTrf2Fi8V91mJ-R3FMdh6Reg0,2002
138
- replay_rec-0.20.2.dist-info/RECORD,,
134
+ replay_rec-0.20.3.dist-info/METADATA,sha256=AS8K7dngECYkEmit2-wSMhqWJpNL8ryJtjndQjctYhs,13562
135
+ replay_rec-0.20.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
136
+ replay_rec-0.20.3.dist-info/licenses/LICENSE,sha256=rPmcA7UrHxBChEAAlJyE24qUWKKl9yLQXxFsKeg_LX4,11344
137
+ replay_rec-0.20.3.dist-info/licenses/NOTICE,sha256=k0bo4KHiHLRax5K3XKTTrf2Fi8V91mJ-R3FMdh6Reg0,2002
138
+ replay_rec-0.20.3.dist-info/RECORD,,