Skip to content

Commit

Permalink
refactor: remove unnecessary code #5
Browse files Browse the repository at this point in the history
  • Loading branch information
GangBean committed May 9, 2024
1 parent e09247a commit 00e97a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/datasets/cdae_data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ def split(self, df):
'''
logger.info(f'start random user split...')

item_list = df.columns[1:].astype(int)
train_data, valid_data, test_data = {}, {}, {}

for i, row in tqdm(df.iterrows(), total=df.shape[0]):
for _, row in tqdm(df.iterrows(), total=df.shape[0]):

# train+valid+test mask
user_id = int(row['user_id'])
Expand Down

0 comments on commit 00e97a5

Please sign in to comment.