ee4b0bcc2cbac3c79c9b0b2c30036d189654bed4,keras/datasets/boston_housing.py,,load_data,#Any#Any#Any#,5
Before Change
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))])
y_train = np.array(y[:int(len(x) * (1 - test_split))])
After Change
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))])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: keras-team/keras
Commit Name: 10deb8f267e1d982415a23a8f5c8cc44da4f4671
Time: 2016-04-01
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_normalization.py
Class Name:
Method Name: test_batchnorm_mode_0
Project Name: keras-team/keras
Commit Name: 403b4fc7a25da5d957b24f1c269103ef6e290bd6
Time: 2016-01-26
Author: udi@benreuven.com
File Name: keras/preprocessing/image.py
Class Name: ImageDataGenerator
Method Name: flow