未验证 提交 6be6612f 编写于 作者: J Jiawei Wang 提交者: GitHub

Update ABTEST_IN_PADDLE_SERVING.md

上级 a4de9090
......@@ -19,6 +19,7 @@ sh get_data.sh
The following Python code will process the data `test_data/part-0` and write to the `processed.data` file.
[//file]:process.py
``` python
from imdb_reader import IMDBDataset
imdb_dataset = IMDBDataset()
......@@ -59,7 +60,8 @@ exit
Run the following Python code on the host computer to start client. Make sure that the host computer is installed with the `paddle-serving-client` package.
``` go
[//file]:ab_client.py
``` python
from paddle_serving_client import Client
client = Client()
......@@ -94,3 +96,15 @@ When making prediction on the client side, if the parameter `need_variant_tag=Tr
[lstm](total: 1867) acc: 0.490091055169
[bow](total: 217) acc: 0.73732718894
```
<!--
mv ../Serving/python/examples/imdb/get_data.sh .
pip install -U paddle_serving_server
pip install -U paddle_serving_client
pip install -U paddlepaddle
sh get_data.sh
python process.py
python -m paddle_serving_server.serve --model imdb_bow_model --port 8000 >std.log 2>err.log &
python -m paddle_serving_server.serve --model imdb_lstm_model --port 9000 >std.log 2>err.log &
python ab_client.py
-->
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册