FederatedAI / FATE

An Industrial Grade Federated Learning Framework
Apache License 2.0
5.67k stars 1.55k forks source link

fate rest api在线预测结果与预期不符合 #4578

Closed relinda2019 closed 2 months ago

relinda2019 commented 1 year ago

Describe the bug 横向LR,训练完成,在线预测,返回的结果与预期不符合,应该返回prob,但返回的是模型信息

To Reproduce Steps to reproduce the behavior:

load model

http://x.x.x.x:9380/v1/model/load

{ "initiator": { "party_id": "10000", "role": "guest" }, "role": { "guest": [ "10000" ], "host": [ "9997" ], "arbiter": [ "9998" ] }, "job_parameters": { "model_id": "arbiter-9998#guest-10000#host-9997#model", "model_version": "202301061025474546970" } } bind model

http://x.x.x.x:9380/v1/model/bind

{ "service_id": "002", "initiator": { "party_id": "10000", "role": "guest" }, "role": { "guest": [ "10000" ], "host": [ "9997" ], "arbiter": [ "9998" ] }, "job_parameters": { "model_id": "arbiter-9998#guest-10000#host-9997#model", "model_version": "202301061025474546970" }, "servings": [] } 返回: image-20230109115147392

inference

http://x.x.x.x:8059/federation/v1/inference

{ "head": { "serviceId": "002" }, "body": { "featureData": { "x0": 0.254879, "x1": -1.046633, "x2": 0.2096559999999999, "x3": 0.074214, "x4": -0.441366, "x5": -0.377645, "x6": -0.485934, "x7": 0.347072, "x8": -0.28757, "x9": -0.733474, "x10": 0.4495119999999999, "x11": -1.247226, "x12": 0.413178, "x13": 0.3037809999999999, "x14": -0.123848, "x15": -0.184227, "x16": -0.219076, "x17": 0.2685369999999999, "x18": 0.015996, "x19": -0.789267, "x20": -0.33736, "x21": -0.728193, "x22": -0.442587, "x23": -0.272757, "x24": -0.6080180000000001, "x25": -0.577235, "x26": -0.5011260000000001, "x27": 0.143371, "x28": -0.466431, "x29": -0.5541020000000001 } } } See error

image-20230109114921522

Expected behavior

image-20230109114957488

mgqa34 commented 1 year ago

Serving的host方adaptor读取特征数据流程是否正常?

relinda2019 commented 1 year ago

跑的是一个横向逻辑回归的任务,这个是在guest方进行的在线预测,host方会对其有影响吗?

github-actions[bot] commented 2 months ago

This issue has been marked as stale because it has been open for 365 days with no activity. If this issue is still relevant or if there is new information, please feel free to update or reopen it.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 1 days since being marked as stale. If this issue is still relevant or if there is new information, please feel free to update or reopen it.