Skip to content

Commit f0e1071

Browse files
reedwmTaylor Robie
authored and
Taylor Robie
committed
Fix docstrings in data_preprocessing.py. (tensorflow#4976)
1 parent 58037d2 commit f0e1071

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

official/recommendation/data_preprocessing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def __init__(self, user_map, item_map, num_data_readers, cache_paths,
5959
item_map: Dict mapping raw item ids to regularized ids.
6060
num_data_readers: The number of reader Datasets used during training.
6161
cache_paths: Object containing locations for various cache files.
62+
num_train_positives: The number of positive training examples in the
63+
dataset.
6264
"""
6365

6466
self.user_map = {int(k): int(v) for k, v in user_map.items()}
@@ -255,9 +257,6 @@ def generate_train_eval_data(df, approx_num_shards, num_items, cache_paths):
255257
num_items: The cardinality of the item set.
256258
cache_paths: rconst.Paths object containing locations for various cache
257259
files.
258-
259-
Returns:
260-
A tuple containing the validation data.
261260
"""
262261

263262
num_rows = len(df)

0 commit comments

Comments
 (0)