overview.rst 1.3 KB
Newer Older
S
superjom 已提交
1 2
V2 API Overview
================
L
Luo Tao 已提交
3

S
superjom 已提交
4
The PaddlePaddle V2 API is designed to provide a modern user interface for PaddlePaddle V1(the original layer-based platform of PaddlePaddle),
S
format  
superjom 已提交
5
it proposes some high-level concepts such as `Layers <http://www.paddlepaddle.org/docs/develop/api/en/v2/config/layer.html>`_ , `Optimizer <http://www.paddlepaddle.org/docs/develop/api/en/v2/config/optimizer.html>`_ , `Evaluator <http://www.paddlepaddle.org/docs/develop/api/en/v2/config/evaluators.html>`_  and `Data Reader <http://www.paddlepaddle.org/docs/develop/api/en/v2/data/data_reader.html>`_ to make the model configuration more familiar to users.
S
boot  
superjom 已提交
6 7 8

A model is composed of the computation described by a group of `Layers`, with `Evaluator` to define the error, `Optimizer` to update the parameters and `Data Reader` to feed in the data.

S
format  
superjom 已提交
9
We also provide the `interface for Training and Inference <http://www.paddlepaddle.org/docs/develop/api/en/v2/run_logic.html>`_ to help control the training and inference phrase,
S
superjom 已提交
10
it has several easy to use methods
S
boot  
superjom 已提交
11 12 13 14 15

- `paddle.train` 
- `paddle.test`
- `paddle.infer`

S
superjom 已提交
16
to better expose the internal running details, different `events <http://www.paddlepaddle.org/docs/develop/api/en/v2/run_logic.html#event>`_ are available to users by writing some callbacks.