ee4b0bcc2cbac3c79c9b0b2c30036d189654bed4,keras/datasets/boston_housing.py,,load_data,#Any#Any#Any#,5

Before Change


    f.close()

    np.random.seed(seed)
    np.random.shuffle(x)
    np.random.seed(seed)
    np.random.shuffle(y)

    x_train = np.array(x[:int(len(x) * (1 - test_split))])

After Change


    f.close()

    np.random.seed(seed)
    indices = np.arange(len(x))
    np.random.shuffle(indices)
    x = x[indices]
    y = y[indices]

    x_train = np.array(x[:int(len(x) * (1 - test_split))])
    y_train = np.array(y[:int(len(x) * (1 - test_split))])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: ee4b0bcc2cbac3c79c9b0b2c30036d189654bed4
Time: 2017-10-31
Author: ozabluda@gmail.com
File Name: keras/datasets/boston_housing.py
Class Name:
Method Name: load_data


Project Name: OpenNMT/OpenNMT-py
Commit Name: cc80175c2704c0dbbfe908f6b678c84ef1741a56
Time: 2017-03-22
Author: bryan.mccann.is@gmail.com
File Name: onmt/Dataset.py
Class Name: Dataset
Method Name: shuffle


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 2a1a6851344172e0134f3c5f4f5c1021975f2812
Time: 2018-03-11
Author: petrochukm@gmail.com
File Name: torchnlp/samplers/bucket_batch_sampler.py
Class Name: BucketBatchSampler
Method Name: __iter__