Skip to content

Commit

Permalink
add httpAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
wufan1991 committed Sep 13, 2021
1 parent eccb1c3 commit 5b25203
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion document/docs/service/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,11 @@ fate-serving-extension中预设了6种Adapter的简单实现
>x0:-0.320167,x1:0.58883,x2:-0.18408,x3:-0.384207,x4:2.201839,x5:1.68401,x6:1.219096,x7:1.150692,x8:1.9656,x9:1.572462,x10:-0.35685
x0:1,x1:5,x2:13,x3:58,x4:95,x5:352,x6:418,x7:833,x8:888,x9:937,x10:32776

#### TestFilePickAdapter
#### HttpAdapter
在serving-server.properties文件中配置属性feature.single.adaptor和http.adapter.url,feature.single.adaptor为继承AbstractSingleFeatureDataAdaptor
接口,url为调用获取数据接口地址。
feature.single.adaptor=com..webank.ai.fate.serving.adaptor.dataaccess.HttpAdapter
http.adapter.url=http://127.0.0.1:9380/v1/http/adapter/getFeature

### HttpBatchAdapter
用于批量预测,需将feature.single.adaptor配置改为feature.batch.adaptor

0 comments on commit 5b25203

Please sign in to comment.