@@ -280,7 +280,7 @@ def load_mnist_dataset(shape=(-1, 784), path='data'):
280280 >>> X_train, y_train, X_val, y_val, X_test, y_test = tlx.files.load_mnist_dataset(shape=(-1,784), path='datasets')
281281 >>> X_train, y_train, X_val, y_val, X_test, y_test = tlx.files.load_mnist_dataset(shape=(-1, 28, 28, 1))
282282 """
283- return _load_mnist_dataset (shape , path , name = 'mnist' , url = 'http ://yann.lecun. com/exdb /mnist/' )
283+ return _load_mnist_dataset (shape , path , name = 'mnist' , url = 'https ://ossci-datasets.s3.amazonaws. com/mnist/' )
284284
285285
286286def load_fashion_mnist_dataset (shape = (- 1 , 784 ), path = 'data' ):
@@ -310,7 +310,7 @@ def load_fashion_mnist_dataset(shape=(-1, 784), path='data'):
310310 )
311311
312312
313- def _load_mnist_dataset (shape , path , name = 'mnist' , url = 'http ://yann.lecun. com/exdb /mnist/' ):
313+ def _load_mnist_dataset (shape , path , name = 'mnist' , url = 'https ://ossci-datasets.s3.amazonaws. com/mnist/' ):
314314 """A generic function to load mnist-like dataset.
315315
316316 Parameters:
@@ -322,7 +322,7 @@ def _load_mnist_dataset(shape, path, name='mnist', url='http://yann.lecun.com/ex
322322 name : str
323323 The dataset name you want to use(the default is 'mnist').
324324 url : str
325- The url of dataset(the default is 'http ://yann.lecun. com/exdb /mnist/').
325+ The url of dataset(the default is 'https ://ossci-datasets.s3.amazonaws. com/mnist/').
326326 """
327327 path = os .path .join (path , name )
328328
@@ -2375,7 +2375,7 @@ def maybe_download_and_extract(filename, working_directory, url_source, extract=
23752375 --------
23762376 >>> down_file = tlx.files.maybe_download_and_extract(filename='train-images-idx3-ubyte.gz',
23772377 ... working_directory='data/',
2378- ... url_source='http ://yann.lecun. com/exdb /mnist/')
2378+ ... url_source='https ://ossci-datasets.s3.amazonaws. com/mnist/')
23792379 >>> tlx.files.maybe_download_and_extract(filename='ADEChallengeData2016.zip',
23802380 ... working_directory='data/',
23812381 ... url_source='http://sceneparsing.csail.mit.edu/data/',
0 commit comments