a8f6a07154cad7b4f151f5eb40456f30c2634767,labs/04/mnist.py,MNIST,__init__,#MNIST#,41
Before Change
yield batch
def __init__(self):
path = os.path.basename(self._URL)
if not os.path.exists(path):
print("Downloading MNIST dataset...", file=sys.stderr)
urllib.request.urlretrieve(self._URL, filename=path)
mnist = np.load(path)
for dataset in ["train", "dev", "test"]:
After Change
yield batch
def __init__(self, dataset="mnist"):
path = "{}.npz".format(dataset)
if not os.path.exists(path):
print("Downloading dataset {}...".format(dataset), file=sys.stderr)
urllib.request.urlretrieve("{}/{}".format(self._URL, path), filename=path)
mnist = np.load(path)
for dataset in ["train", "dev", "test"]:
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 12
Instances
Project Name: ufal/npfl114
Commit Name: a8f6a07154cad7b4f151f5eb40456f30c2634767
Time: 2019-05-05
Author: milan@strakovi.com
File Name: labs/04/mnist.py
Class Name: MNIST
Method Name: __init__
Project Name: ufal/npfl114
Commit Name: a8f6a07154cad7b4f151f5eb40456f30c2634767
Time: 2019-05-05
Author: milan@strakovi.com
File Name: labs/01/mnist.py
Class Name: MNIST
Method Name: __init__
Project Name: ufal/npfl114
Commit Name: a8f6a07154cad7b4f151f5eb40456f30c2634767
Time: 2019-05-05
Author: milan@strakovi.com
File Name: labs/03/mnist.py
Class Name: MNIST
Method Name: __init__
Project Name: ufal/npfl114
Commit Name: a8f6a07154cad7b4f151f5eb40456f30c2634767
Time: 2019-05-05
Author: milan@strakovi.com
File Name: labs/02/mnist.py
Class Name: MNIST
Method Name: __init__
Project Name: ufal/npfl114
Commit Name: a8f6a07154cad7b4f151f5eb40456f30c2634767
Time: 2019-05-05
Author: milan@strakovi.com
File Name: labs/05/mnist.py
Class Name: MNIST
Method Name: __init__