diff --git a/doc/ABTEST_IN_PADDLE_SERVING.md b/doc/ABTEST_IN_PADDLE_SERVING.md index 09d13c12583ddfa0f1767cf46a309cac5ef86867..4582da6b42cd2117694af8ca3a5d8bcb921ad0a0 100644 --- a/doc/ABTEST_IN_PADDLE_SERVING.md +++ b/doc/ABTEST_IN_PADDLE_SERVING.md @@ -88,7 +88,7 @@ with open('processed.data') as f: cnt[tag]['total'] += 1 for tag, data in cnt.items(): - print('[{}](total: {}) acc: {}'.format(tag, data['total'], float(data['acc']) / float(data['total']))) + print('[{}] acc: {}'.format(tag, data['total'], float(data['acc']) / float(data['total']))) ``` In the code, the function `client.add_variant(tag, clusters, variant_weight)` is to add a variant with label `tag` and flow weight `variant_weight`. In this example, a BOW variant with label of `bow` and flow weight of `10`, and an LSTM variant with label of `lstm` and a flow weight of `90` are added. The flow on the client side will be distributed to two variants according to the ratio of `10:90`. @@ -98,8 +98,8 @@ When making prediction on the client side, if the parameter `need_variant_tag=Tr ### Expected Results Due to different network conditions, the results of each prediction may be slightly different. ``` python -[lstm](total: 1867) acc: 0.490091055169 -[bow](total: 217) acc: 0.73732718894 +[lstm] acc: 0.490091055169 +[bow] acc: 0.73732718894 ```