b0500764a8a451882262328c0f1676402fb0a783,keras/datasets/mnist.py,,load_data,#Any#,7
Before Change
path = get_file(path, origin="https://s3.amazonaws.com/img-datasets/mnist.pkl.gz")
if path.endswith(".gz"):
f = gzip.open(path, "rb")
else:
f = open(path, "rb")
if sys.version_info < (3,):
data = cPickle.load(f)
else:
data = cPickle.load(f, encoding="bytes")
f.close()
return data // (x_train, y_train), (x_test, y_test)
After Change
Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.
path = get_file(path, origin="https://s3.amazonaws.com/img-datasets/mnist.npz")
f = np.load(path)
x_train = f["x_train"]
y_train = f["y_train"]
x_test = f["x_test"]
y_test = f["y_test"]
f.close()
return (x_train, y_train), (x_test, y_test)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: keras-team/keras
Commit Name: b0500764a8a451882262328c0f1676402fb0a783
Time: 2017-02-18
Author: francois.chollet@gmail.com
File Name: keras/datasets/mnist.py
Class Name:
Method Name: load_data
Project Name: tensorflow/tensorflow
Commit Name: 3d03ae2086b232cb6803507ae4defd997c256ec9
Time: 2020-11-18
Author: crccw@google.com
File Name: tensorflow/python/distribute/multi_process_lib.py
Class Name:
Method Name: _set_spawn_exe_path
Project Name: explosion/spaCy
Commit Name: 01858e9b5972a8c1dec86f88eef3f17fea63cdc6
Time: 2017-09-20
Author: honnibal+gh@gmail.com
File Name: examples/multi_word_matches.py
Class Name:
Method Name: read_gazetteer