Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
9f417f12
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9f417f12
编写于
3月 27, 2017
作者:
Q
qijun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add some dateset docs
上级
0690a9fb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
66 addition
and
11 deletion
+66
-11
doc/api/v2/data.rst
doc/api/v2/data.rst
+3
-3
doc/api/v2/run_logic.rst
doc/api/v2/run_logic.rst
+7
-1
python/paddle/v2/dataset/cifar.py
python/paddle/v2/dataset/cifar.py
+46
-2
python/paddle/v2/dataset/conll05.py
python/paddle/v2/dataset/conll05.py
+6
-5
python/paddle/v2/dataset/movielens.py
python/paddle/v2/dataset/movielens.py
+4
-0
未找到文件。
doc/api/v2/data.rst
浏览文件 @
9f417f12
========
Data
sets
========
========
==========================
Data
Reader Inferface and DataSets
========
==========================
DataTypes
...
...
doc/api/v2/run_logic.rst
浏览文件 @
9f417f12
...
...
@@ -26,6 +26,12 @@ Event
Inference
=========
.. auto
function:: paddle.v2.infer
.. auto
module:: paddle.v2.inference
:members: Inference
:noindex:
.. autofunction:: paddle.v2.infer
:members:
:noindex:
python/paddle/v2/dataset/cifar.py
浏览文件 @
9f417f12
...
...
@@ -12,9 +12,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
CIFAR dataset: https://www.cs.toronto.edu/~kriz/cifar.html
CIFAR dataset.
This module will download dataset from https://www.cs.toronto.edu/~kriz/cifar.html and
parse train set and test set into paddle reader creators.
The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000
images per class. There are 50000 training images and 10000 test images.
The CIFAR-100 dataset is just like the CIFAR-10, except it has 100 classes containing
600 images each. There are 500 training images and 100 testing images per class.
TODO(yuyang18): Complete the comments.
"""
import
cPickle
...
...
@@ -54,20 +62,56 @@ def reader_creator(filename, sub_name):
def
train100
():
"""
CIFAR-100 train set creator.
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 99].
:return: Train reader creator
:rtype: callable
"""
return
reader_creator
(
download
(
CIFAR100_URL
,
'cifar'
,
CIFAR100_MD5
),
'train'
)
def
test100
():
"""
CIFAR-100 test set cretor.
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9].
:return: Test reader creator.
:rtype: callable
"""
return
reader_creator
(
download
(
CIFAR100_URL
,
'cifar'
,
CIFAR100_MD5
),
'test'
)
def
train10
():
"""
CIFAR-10 train set creator.
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9].
:return: Train reader creator
:rtype: callable
"""
return
reader_creator
(
download
(
CIFAR10_URL
,
'cifar'
,
CIFAR10_MD5
),
'data_batch'
)
def
test10
():
"""
CIFAR-10 test set cretor.
It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9].
:return: Test reader creator.
:rtype: callable
"""
return
reader_creator
(
download
(
CIFAR10_URL
,
'cifar'
,
CIFAR10_MD5
),
'test_batch'
)
...
...
python/paddle/v2/dataset/conll05.py
浏览文件 @
9f417f12
...
...
@@ -11,11 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
tarfile
import
gzip
import
itertools
from
common
import
download
"""
Conll 2005 dataset. Paddle semantic role labeling Book and demo use this
dataset as an example. Because Conll 2005 is not free in public, the default
...
...
@@ -25,6 +20,12 @@ URL and MD5 to their Conll dataset.
TODO(yuyang18): Complete comments.
"""
import
tarfile
import
gzip
import
itertools
from
common
import
download
__all__
=
[
'test, get_dict'
,
'get_embedding'
]
DATA_URL
=
'http://www.cs.upc.edu/~srlconll/conll05st-tests.tar.gz'
...
...
python/paddle/v2/dataset/movielens.py
浏览文件 @
9f417f12
...
...
@@ -14,6 +14,10 @@
"""
Movielens 1-M dataset.
GroupLens Research collected and made available rating data sets from the
MovieLens web site (http://movielens.org). Movielens 1-M dataset contains 1 million
ratings from 6000 users on 4000 movies.
TODO(yuyang18): Complete comments.
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录