同一段训练代码
xs = box.concat(
[box.share(x_h, owner="hospital"),
box.share(x_i, owner="insurer")], axis=1)
ys = box.share(y.reshape(-1, 1), owner="insurer")
model = VerticalLogisticRegression(box, lr=0.5, epochs=15).fit(xs, ys)
w = model.weights(to="insurer").fetch().reshape(-1)
后端 POST /dry_run/api/run。mpc dry_run 上下文里所有 vault 自动换成 PlainVault,算法代码一行不改。
结果对比
| 维度 | 真实 MPC | dry_run 明文 |
|---|---|---|
| 运行后显示 | ||
加速比
—
真实 / 试跑
权重最大偏差
—
量化精度内
