提交 7b72c792 编写于 作者: Y Yancey1989

update

上级 b7a809a1
...@@ -77,6 +77,6 @@ def test10(): ...@@ -77,6 +77,6 @@ def test10():
'test_batch') 'test_batch')
def download(): def fetch_data():
paddle.v2.dataset.common.download(CIFAR10_URL, 'cifar', CIFAR10_MD5) paddle.v2.dataset.common.download(CIFAR10_URL, 'cifar', CIFAR10_MD5)
paddle.v2.dataset.common.download(CIFAR100_URL, 'cifar', CIFAR100_MD5) paddle.v2.dataset.common.download(CIFAR100_URL, 'cifar', CIFAR100_MD5)
...@@ -198,7 +198,7 @@ def test(): ...@@ -198,7 +198,7 @@ def test():
return reader_creator(reader, word_dict, verb_dict, label_dict) return reader_creator(reader, word_dict, verb_dict, label_dict)
def download(): def fetch_data():
paddle.v2.dataset.common.download(WORDDICT_URL, 'conll05st', WORDDICT_MD5) paddle.v2.dataset.common.download(WORDDICT_URL, 'conll05st', WORDDICT_MD5)
paddle.v2.dataset.common.download(VERBDICT_URL, 'conll05st', VERBDICT_MD5) paddle.v2.dataset.common.download(VERBDICT_URL, 'conll05st', VERBDICT_MD5)
paddle.v2.dataset.common.download(TRGDICT_URL, 'conll05st', TRGDICT_MD5) paddle.v2.dataset.common.download(TRGDICT_URL, 'conll05st', TRGDICT_MD5)
......
...@@ -125,5 +125,5 @@ def word_dict(): ...@@ -125,5 +125,5 @@ def word_dict():
re.compile("aclImdb/((train)|(test))/((pos)|(neg))/.*\.txt$"), 150) re.compile("aclImdb/((train)|(test))/((pos)|(neg))/.*\.txt$"), 150)
def download(): def fetch_data():
paddle.v2.dataset.common.download(URL, 'imdb', MD5) paddle.v2.dataset.common.download(URL, 'imdb', MD5)
...@@ -91,5 +91,5 @@ def test(word_idx, n): ...@@ -91,5 +91,5 @@ def test(word_idx, n):
return reader_creator('./simple-examples/data/ptb.valid.txt', word_idx, n) return reader_creator('./simple-examples/data/ptb.valid.txt', word_idx, n)
def download(): def fetch_data():
paddle.v2.dataset.common.download(URL, "imikolov", MD5) paddle.v2.dataset.common.download(URL, "imikolov", MD5)
...@@ -108,6 +108,6 @@ def test(): ...@@ -108,6 +108,6 @@ def test():
TEST_LABEL_MD5), 100) TEST_LABEL_MD5), 100)
def download(): def fetch_data():
paddle.v2.dataset.common.download(TRAIN_IMAGE_URL, 'mnist', TRAIN_IMAGE_MD5) paddle.v2.dataset.common.download(TRAIN_IMAGE_URL, 'mnist', TRAIN_IMAGE_MD5)
paddle.v2.dataset.common.download(TRAIN_LABEL_URL, 'mnist', TRAIN_LABEL_MD5) paddle.v2.dataset.common.download(TRAIN_LABEL_URL, 'mnist', TRAIN_LABEL_MD5)
...@@ -205,7 +205,7 @@ def unittest(): ...@@ -205,7 +205,7 @@ def unittest():
print train_count, test_count print train_count, test_count
def download(): def fetch_data():
paddle.v2.dataset.common.download(URL, "movielens", MD5) paddle.v2.dataset.common.download(URL, "movielens", MD5)
......
...@@ -26,7 +26,7 @@ from itertools import chain ...@@ -26,7 +26,7 @@ from itertools import chain
import nltk import nltk
from nltk.corpus import movie_reviews from nltk.corpus import movie_reviews
import common import paddle.v2.dataset.common
__all__ = ['train', 'test', 'get_word_dict'] __all__ = ['train', 'test', 'get_word_dict']
NUM_TRAINING_INSTANCES = 1600 NUM_TRAINING_INSTANCES = 1600
...@@ -127,5 +127,5 @@ def test(): ...@@ -127,5 +127,5 @@ def test():
return reader_creator(data_set[NUM_TRAINING_INSTANCES:]) return reader_creator(data_set[NUM_TRAINING_INSTANCES:])
def download(): def fetch_data():
nltk.download('movie_reviews', download_dir=common.DATA_HOME) nltk.download('movie_reviews', download_dir=common.DATA_HOME)
...@@ -91,5 +91,5 @@ def test(): ...@@ -91,5 +91,5 @@ def test():
return reader return reader
def download(): def fetch_data():
paddle.v2.dataset.common.download(URL, 'uci_housing', MD5) paddle.v2.dataset.common.download(URL, 'uci_housing', MD5)
...@@ -105,5 +105,5 @@ def test(dict_size): ...@@ -105,5 +105,5 @@ def test(dict_size):
'test/test', dict_size) 'test/test', dict_size)
def download(): def fetch_data():
paddle.v2.dataset.common.download(URL_TRAIN, 'wmt14', MD5_TRAIN) paddle.v2.dataset.common.download(URL_TRAIN, 'wmt14', MD5_TRAIN)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册