Skip to content

Commit bf6e095

Browse files
committed
Merge branch 'master' of https://github.com/PaddlePaddle/Paddle into link_fix
2 parents af7f407 + ab86711 commit bf6e095

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ before_install:
5050
fi
5151
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo paddle/scripts/travis/before_install.linux.sh; fi
5252
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
53-
- pip install wheel protobuf sphinx breathe recommonmark virtualenv numpy
53+
- pip install wheel protobuf 'sphinx==1.4.9' breathe recommonmark virtualenv numpy
5454
script:
5555
- paddle/scripts/travis/main.sh
5656
notifications:

doc/ui/data_provider/pydataprovider2.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ input_types
174174
+++++++++++
175175

176176
PaddlePaddle has four data types, and three sequence types.
177-
The four data types are:
177+
The four data types are:
178178

179179
* :code:`dense_vector`: dense float vector.
180180
* :code:`sparse_binary_vector`: sparse binary vector, most of the value is 0, and
181181
the non zero elements are fixed to 1.
182-
* :code:`sparse_float_vector`: sparse float vector, most of the value is 0, and some
182+
* :code:`sparse_vector`: sparse float vector, most of the value is 0, and some
183183
non zero elements can be any float value. They are given by the user.
184184
* :code:`integer`: an integer scalar, that is especially used for label or word index.
185185

@@ -200,7 +200,7 @@ in the above table.
200200
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
201201
| sparse_binary_vector | [i, i, ...] | [[i, ...], [i, ...], ...] | [[[i, ...], ...], [[i, ...], ...],...] |
202202
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
203-
| sparse_float_vector | [(i,f), (i,f), ...] | [[(i,f), ...], [(i,f), ...], ...] | [[[(i,f), ...], ...], [[(i,f), ...], ...],...] |
203+
| sparse_vector | [(i,f), (i,f), ...] | [[(i,f), ...], [(i,f), ...], ...] | [[[(i,f), ...], ...], [[(i,f), ...], ...],...] |
204204
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
205205
| integer_value | i | [i, i, ...] | [[i, ...], [i, ...], ...] |
206206
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
@@ -227,7 +227,7 @@ Its parameters lists as follows:
227227
* :code:`is_train` is a bool parameter that indicates the DataProvider is used in
228228
training or testing.
229229
* :code:`file_list` is the list of all files.
230-
230+
231231
* User-defined parameters args can be set in training configuration.
232232

233233
Note, PaddlePaddle reserves the right to add pre-defined parameter, so please

doc/ui/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## API Reference
99

10-
* [Model Config Interface](api/trainer_config_helpers/index.md)
10+
* [Model Config Interface](api/trainer_config_helpers/index.rst)
1111

1212
## Command Line Argument
1313

doc_cn/ui/data_provider/pydataprovider2.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ process函数调用多次 :code:`yield` 即可。 :code:`yield` 是Python的一
5353

5454
.. literalinclude:: mnist_config.py
5555

56-
这里说明了训练数据是 'train.list',而没有测试数据。引用的DataProvider是 'mnist_provider'
56+
这里说明了训练数据是 'train.list',而没有测试数据。引用的DataProvider是 'mnist_provider'
5757
这个模块中的 'process' 函数。
5858

5959
同时,根据模型配置文件中 :code:`data_layer` 的名字,用户也可以显式指定返回的数据对应关系。例如:
@@ -152,7 +152,7 @@ PaddlePaddle的数据包括四种主要类型,和三种序列模式。其中
152152

153153
* dense_vector 表示稠密的浮点数向量。
154154
* sparse_binary_vector 表示稀疏的零一向量,即大部分值为0,有值的位置只能取1
155-
* sparse_float_vector 表示稀疏的向量,即大部分值为0,有值的部分可以是任何浮点数
155+
* sparse_vector 表示稀疏的向量,即大部分值为0,有值的部分可以是任何浮点数
156156
* integer 表示整数标签。
157157

158158
而三种序列模式为
@@ -170,7 +170,7 @@ PaddlePaddle的数据包括四种主要类型,和三种序列模式。其中
170170
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
171171
| sparse_binary_vector | [i, i, ...] | [[i, ...], [i, ...], ...] | [[[i, ...], ...], [[i, ...], ...],...] |
172172
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
173-
| sparse_float_vector | [(i,f), (i,f), ...] | [[(i,f), ...], [(i,f), ...], ...] | [[[(i,f), ...], ...], [[(i,f), ...], ...],...] |
173+
| sparse_vector | [(i,f), (i,f), ...] | [[(i,f), ...], [(i,f), ...], ...] | [[[(i,f), ...], ...], [[(i,f), ...], ...],...] |
174174
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
175175
| integer_value | i | [i, i, ...] | [[i, ...], [i, ...], ...] |
176176
+----------------------+---------------------+-----------------------------------+------------------------------------------------+
@@ -202,7 +202,7 @@ DataProvider提供了两种简单的Cache策略。他们是
202202

203203
* CacheType.NO_CACHE 不缓存任何数据,每次都会从python端读取数据
204204
* CacheType.CACHE_PASS_IN_MEM 第一个pass会从python端读取数据,剩下的pass会直接从内存里
205-
读取数据。
205+
读取数据。
206206

207207

208208
注意事项

0 commit comments

Comments
 (0)