Skip to content

Commit 0ed2358

Browse files
committed
Merge branch 'develop' of github.com:baidu/Paddle into feature/refine_doc_drnn
2 parents a49d1d9 + 77ddce0 commit 0ed2358

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+564
-539
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 2.8)
22

33
project(paddle CXX C)
44
set(PADDLE_MAJOR_VERSION 0)
5-
set(PADDLE_MINOR_VERSION 8)
6-
set(PADDLE_PATCH_VERSION 0b3)
5+
set(PADDLE_MINOR_VERSION 9)
6+
set(PADDLE_PATCH_VERSION 0a0)
77
set(PADDLE_VERSION ${PADDLE_MAJOR_VERSION}.${PADDLE_MINOR_VERSION}.${PADDLE_PATCH_VERSION})
88

99
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")

README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developed by Baidu scientists and engineers for the purpose of applying deep
1414
learning to many products at Baidu.
1515

1616
Our vision is to enable deep learning for everyone via PaddlePaddle.
17-
Please refer to our [release announcement](https://github.com/baidu/Paddle/releases) to track the latest feature of PaddlePaddle.
17+
Please refer to our [release announcement](https://github.com/baidu/Paddle/releases) to track the latest feature of PaddlePaddle.
1818

1919
## Features
2020

@@ -26,15 +26,15 @@ Please refer to our [release announcement](https://github.com/baidu/Paddle/relea
2626
connection.
2727

2828
- **Efficiency**
29-
29+
3030
In order to unleash the power of heterogeneous computing resource,
3131
optimization occurs at different levels of PaddlePaddle, including
3232
computing, memory, architecture and communication. The following are some
3333
examples:
3434

3535
- Optimized math operations through SSE/AVX intrinsics, BLAS libraries
36-
(e.g. MKL, ATLAS, cuBLAS) or customized CPU/GPU kernels.
37-
- Highly optimized recurrent networks which can handle **variable-length**
36+
(e.g. MKL, ATLAS, cuBLAS) or customized CPU/GPU kernels.
37+
- Highly optimized recurrent networks which can handle **variable-length**
3838
sequence without padding.
3939
- Optimized local and distributed training for models with high dimensional
4040
sparse data.
@@ -57,41 +57,39 @@ Please refer to our [release announcement](https://github.com/baidu/Paddle/relea
5757

5858
## Installation
5959
Check out the [Install Guide](http://paddlepaddle.org/doc/build/) to install from
60-
pre-built packages (**docker image**, **deb package**) or
60+
pre-built packages (**docker image**, **deb package**) or
6161
directly build on **Linux** and **Mac OS X** from the source code.
62-
62+
6363
## Documentation
6464
Both [English Docs](http://paddlepaddle.org/doc/) and [Chinese Docs](http://paddlepaddle.org/doc_cn/) are provided for our users and developers.
6565

6666
- [Quick Start](http://paddlepaddle.org/doc/demo/quick_start/index_en) <br>
6767
You can follow the quick start tutorial to learn how use PaddlePaddle
6868
step-by-step.
69-
69+
7070
- [Example and Demo](http://paddlepaddle.org/doc/demo/) <br>
7171
We provide five demos, including: image classification, sentiment analysis,
72-
sequence to sequence model, recommendation, semantic role labeling.
73-
72+
sequence to sequence model, recommendation, semantic role labeling.
73+
7474
- [Distributed Training](http://paddlepaddle.org/doc/cluster) <br>
7575
This system supports training deep learning models on multiple machines
7676
with data parallelism.
77-
77+
7878
- [Python API](http://paddlepaddle.org/doc/ui/) <br>
7979
PaddlePaddle supports using either Python interface or C++ to build your
8080
system. We also use SWIG to wrap C++ source code to create a user friendly
8181
interface for Python. You can also use SWIG to create interface for your
8282
favorite programming language.
83-
83+
8484
- [How to Contribute](http://paddlepaddle.org/doc/build/contribute_to_paddle.html) <br>
8585
We sincerely appreciate your interest and contributions. If you would like to
86-
contribute, please read the contribution guide.
86+
contribute, please read the contribution guide.
8787

8888
- [Source Code Documents](http://paddlepaddle.org/doc/source/) <br>
8989

9090
## Ask Questions
91-
Please join the [**gitter chat**](https://gitter.im/PaddlePaddle/Deep_Learning) or send email to
92-
**[email protected]** to ask questions and talk about methods and models.
93-
Framework development discussions and
94-
bug reports are collected on [Issues](https://github.com/baidu/paddle/issues).
91+
92+
You are welcome to submit questions and bug reports as [Github Issues](https://github.com/baidu/paddle/issues).
9593

9694
## Copyright and License
9795
PaddlePaddle is provided under the [Apache-2.0 license](LICENSE).

demo/sentiment/trainer_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
batch_size=128,
3030
learning_rate=2e-3,
3131
learning_method=AdamOptimizer(),
32+
average_window=0.5,
3233
regularization=L2Regularization(8e-4),
3334
gradient_clipping_threshold=25)
3435

doc/algorithm/rnn/rnn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PaddlePaddle does not need any preprocessing to sequence data, such as padding.
1717

1818
.. code-block:: python
1919
20-
settings.slots = [
20+
settings.input_types = [
2121
integer_value_sequence(len(settings.src_dict)),
2222
integer_value_sequence(len(settings.trg_dict)),
2323
integer_value_sequence(len(settings.trg_dict))]

doc/demo/sentiment_analysis/sentiment_analysis.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Sentiment analysis is also used to monitor social media based on large amount of
66

77
On the other hand, grabbing the user comments of products and analyzing their sentiment are useful to understand user preferences for companies, products, even competing products.
88

9-
This tutorial will guide you through the process of training a Long Short Term Memory (LSTM) Network to classify the sentiment of sentences from [Large Movie Review Dataset](http://ai.stanford.edu/~amaas/data/sentiment/), sometimes known as the [Internet Movie Database (IMDB)](http://ai.stanford.edu/~amaas/papers/wvSent_acl2011.pdf). This dataset contains movie reviews along with their associated binary sentiment polarity labels, namely positive and negative. So randomly guessing yields 50% accuracy.
9+
This tutorial will guide you through the process of training a Long Short Term Memory (LSTM) Network to classify the sentiment of sentences from [Large Movie Review Dataset](http://ai.stanford.edu/~amaas/data/sentiment/), sometimes known as the Internet Movie Database (IMDB). This dataset contains movie reviews along with their associated binary sentiment polarity labels, namely positive and negative. So randomly guessing yields 50% accuracy.
1010

1111
## Data Preparation
1212

@@ -39,7 +39,7 @@ imdbEr.txt imdb.vocab README test train
3939
* imdbEr.txt: expected rating for each token in imdb.vocab.
4040
* README: data documentation.
4141

42-
Both train and test set directory contains:
42+
The file in train set directory is as follows. The test set also contains them except `unsup` and `urls_unsup.txt`.
4343

4444
```
4545
labeledBow.feat neg pos unsup unsupBow.feat urls_neg.txt urls_pos.txt urls_unsup.txt
@@ -151,6 +151,7 @@ settings(
151151
batch_size=128,
152152
learning_rate=2e-3,
153153
learning_method=AdamOptimizer(),
154+
average_window=0.5,
154155
regularization=L2Regularization(8e-4),
155156
gradient_clipping_threshold=25
156157
)
@@ -163,17 +164,18 @@ stacked_lstm_net(dict_dim, class_dim=class_dim,
163164

164165
* **Data Definition**:
165166
* get\_config\_arg(): get arguments setted by `--config_args=xx` in commandline argument.
166-
* Define TrainData and TestData provider, here using Python interface (PyDataProviderWrapper) of PaddlePaddle to load data. For details, you can refer to the document of PyDataProvider.
167+
* Define data provider, here using Python interface to load data. For details, you can refer to the document of PyDataProvider2.
167168

168169
* **Algorithm Configuration**:
169-
* use sgd algorithm.
170-
* use adam optimization.
171170
* set batch size of 128.
172-
* set average sgd window.
173171
* set global learning rate.
172+
* use adam optimization.
173+
* set average sgd window.
174+
* set L2 regularization.
175+
* set gradient clipping threshold.
174176
* **Network Configuration**:
175-
* dict_dim: get dictionary dimension.
176-
* class_dim: set category number, IMDB has two label, namely positive and negative label.
177+
* dict_dim: dictionary dimension.
178+
* class_dim: category number, IMDB has two label, namely positive and negative label.
177179
* `stacked_lstm_net`: predefined network as shown in Figure 3, use this network by default.
178180
* `bidirectional_lstm_net`: predefined network as shown in Figure 2.
179181

doc/dev/new_layer/new_layer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Implement C++ Class
6060

6161
The C++ class of the layer implements the initialization, forward, and backward part of the layer. The fully connected layer is at :code:`paddle/gserver/layers/FullyConnectedLayer.h` and :code:`paddle/gserver/layers/FullyConnectedLayer.cpp`. We list simplified version of the code below.
6262

63-
It needs to derive the base class :code:`paddle::BaseLayer`, and it needs to override the following functions:
63+
It needs to derive the base class :code:`paddle::Layer`, and it needs to override the following functions:
6464

6565
- constructor and destructor.
6666
- :code:`init` function. It is used to initialize the parameters and settings.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
API
2-
========
2+
===
33

44
.. doxygenfile:: paddle/api/PaddleAPI.h
55
.. doxygenfile:: paddle/api/Internal.h

doc/source/cuda/cuda/cuda.rst

Lines changed: 0 additions & 39 deletions
This file was deleted.

doc/source/cuda/cuda/index.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/source/cuda/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CUDA
2+
====
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
matrix.rst
8+
nn.rst
9+
utils.rst

0 commit comments

Comments
 (0)