This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Recognize digits new api first draft#528
Merged
jetfuel merged 3 commits intoPaddlePaddle:high-level-api-branchfrom Jun 1, 2018
Merged
Recognize digits new api first draft#528jetfuel merged 3 commits intoPaddlePaddle:high-level-api-branchfrom
jetfuel merged 3 commits intoPaddlePaddle:high-level-api-branchfrom
Conversation
| |t10k-labels-idx1-ubyte | Evaluation labels | 10,000 | | ||
|
|
||
|
|
||
| ## Fluid API Overview |
Contributor
There was a problem hiding this comment.
This is good summarization. Should we include that in Chapter 1? @daming-lu
02.recognize_digits/README.md
Outdated
| ``` | ||
|
|
||
| - Multi-Layer Perceptron: this network has two hidden fully-connected layers, one with ReLU and the other with softmax activation: | ||
| - Multi-Layer Perceptron: this network has two hidden fully-connected layers, both are using ReLU as activation functino. The output layer is using softmax activation: |
02.recognize_digits/README.md
Outdated
|
|
||
| `batch` is a special decorator, which takes a reader and outputs a *batch reader*, which doesn't yield an instance, but a minibatch at a time. | ||
| ```python | ||
| use_cude = False # set to True if training with GPU |
| ``` | ||
|
|
||
| PaddlePaddle provides a special layer `layer.data` for reading data. Let us create a data layer for reading images and connect it to a classification network created using one of above three functions. We also need a cost layer for training the model. | ||
| #### Train Program Configuration |
Contributor
There was a problem hiding this comment.
Do you intend to make this section a child under Program Functions Configuration? Or it should be just ###
Contributor
Author
There was a problem hiding this comment.
I do feel it should be under the Program Functions Configuration since it is a program function. What do you think? @nickyfantasy
daming-lu
reviewed
Jun 1, 2018
| |t10k-labels-idx1-ubyte | Evaluation labels | 10,000 | | ||
|
|
||
|
|
||
| ## Fluid API Overview |
|
|
||
| ## Fluid API Overview | ||
|
|
||
| The demo will be using the latest paddle fluid API. Fluid API is the latest Paddle API. It simplifies the model configurations without sacrifice the performance. |
|
|
||
| The demo will be using the latest paddle fluid API. Fluid API is the latest Paddle API. It simplifies the model configurations without sacrifice the performance. | ||
| We recommend using Fluid API as it is much easier to pick up. | ||
| Here are the quick overview on the major fluid API complements. |
| We recommend using Fluid API as it is much easier to pick up. | ||
| Here are the quick overview on the major fluid API complements. | ||
|
|
||
| 1. `inference_program`: A function that specify how to get the prediction from the data input. |
|
|
||
| 1. `inference_program`: A function that specify how to get the prediction from the data input. | ||
| This is where you specify the network flow. | ||
| 1. `train_program`: A function that specify how to get avg_cost from `inference_program` and labels. |
| ## Application | ||
|
|
||
| After training, users can use the trained model to classify images. The following code shows how to inference MNIST images through `paddle.infer` interface. | ||
| After training, users can use the trained model to classify images. The following code shows how to inference MNIST images through `fluid.Inferencer`. |
Contributor
There was a problem hiding this comment.
how to infer or do inference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR cover a bit of the Chinese version. Please don't mind them. I will focus on the English version first. and port the update to Chinese later.