19d4eaaf5e1883776b341a4f704bb6a277e315aa,official/recommendation/data_preprocessing.py,,_train_eval_map_fn,#Any#,177

Before Change


    test_blocks.append((
        block_user[0] * np.ones((rconst.NUM_EVAL_NEGATIVES + 1,),
                                dtype=np.int32),
        np.array([block_items[-1]] + test_negatives, dtype=np.uint16)
    ))
    test_positives.append((block_user[0], block_items[-1]))

  train_users = np.concatenate([i[0] for i in train_blocks])

After Change



  with tf.gfile.Open(train_shard_fpath, "wb") as f:
    pickle.dump({
        rconst.TRAIN_KEY: {
            movielens.USER_COLUMN: train_users,
            movielens.ITEM_COLUMN: train_items,
        },
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: tensorflow/models
Commit Name: 19d4eaaf5e1883776b341a4f704bb6a277e315aa
Time: 2018-10-18
Author: taylorrobie@google.com
File Name: official/recommendation/data_preprocessing.py
Class Name:
Method Name: _train_eval_map_fn


Project Name: SheffieldML/GPy
Commit Name: 21dd82f8d95be737999e53c638e6f062d7039a19
Time: 2013-10-22
Author: ibinbei@gmail.com
File Name: GPy/kern/parts/bias.py
Class Name: Bias
Method Name: __init__


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: dc7e9c89882efd50dbf709f995d47b57f912d8c8
Time: 2018-09-11
Author: martin.robertandrew@gmail.com
File Name: pypfopt/efficient_frontier.py
Class Name: EfficientFrontier
Method Name: __init__


Project Name: SheffieldML/GPy
Commit Name: fba121c826ad9ee51b7024f0da452fd434f7b4d4
Time: 2013-10-22
Author: ibinbei@gmail.com
File Name: GPy/kern/parts/white.py
Class Name: White
Method Name: __init__


Project Name: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name: