Comments (17)
hi,这个是按照论文开发的
混淆的逻辑在agglayer里,可以参考下agglayer里的代码
from fate.
具体代码在model_zoo 下的agg layer
from fate.
看到 agg_layer 了,混淆逻辑没问题,只是看论文里的用法:在 passive party feature 上使用,active party top_model 之前使用
和单测中的用法不一样,所以单测只是为了测试混淆逻辑,还是说单测还原了论文的实验?
from fate.
是会有一点不一样的 但是这个代码使用的是原论文的代码方法。单侧(passive party)的用法也是和原论文一致,还原了效果的
from fate.
好奇问一点,feature 的混淆逻辑为啥不做呢?
我理解论文中的做法:passive party feature 混淆 保护 feature,active party 混淆 保护 label;按照单侧的做法 passive party 在 agg_layer 混淆 embedding(论文中这个混淆在 active party),active party 因为没有自己的 feature 只是把 embedding 做聚合+top model,这么做似乎不能保护 label
from fate.
还有一个问题:predict 的时候 这个 passport 还是需要过的对吧
from fate.
- 没太明白您的意思,passive party的feature 混淆要用到passport,不会在active party 进行的?
- passport会跟随模型保存的,预测需要passport
from fate.
from fate.
第二个问题:图中 g_w 这个passport 应该是在 active party(guest) 执行,为什么在代码里看上去在 passive party(host) 中执行
from fate.
guest(acitve) & host(passive) 都有这个agglayer,但是host的agglayer会执行passport相关的逻辑,而guest的是负责从host接受数据&反向传播,详细的可以看agglayer下fedpass 在host方的代码(你想要了解的图片里的红框部分)
from fate.
你还没明白我的问题,我的问题是论文的图上画的 host feature 需要执行 passport,但代码里 host feature 并没有执行passport 呀
请问 bottom model 在哪里执行了 passport
from fate.
下面的这个过程
就是在 feature -> bottom_model -> agg_layer这个过程里完成的
from fate.
这里 g_theta 是 passport 呀,G_theta 是 bottom_model,应该是 feature -> passport -> bottom_model,代码里 feature -> bottom_model -> passport 不是和论文里不一样吗
from fate.
Hi, 你可以把这部分理解为一个完整的过程。这里实现的时候也是以论文代码为准的,论文代码里,比如说Lenet model,也是遵顼一个feature-> bottom_model -> passport的顺序的:
from fate.
from fate.
Hi~ 你可以发邮件问一下作者的,我不知道作者是否允许把代码分享其他人
from fate.
好的,谢谢
from fate.
Related Issues (20)
- 运行给的train_ly.yaml,失败后显示 No found task output.,请问要怎么解决 HOT 6
- 打开FateBoard之后是一片空白,查看控制台的报错如下 HOT 10
- 关于部分同态加密PHE的密钥生成 HOT 3
- 关于文档 HOT 1
- 关于新增接口 HOT 2
- Which communication protocol and serialization method is supported?
- 上传数据时候,不加label可以正确上传,但是加入label之后会报错ValueError: invalid literal for int() with base 10: '0.8960573476702509,但是我的数据都是浮点数啊。 HOT 2
- 算法组件容器化的镜像federatedai/fate:2.0.0无法获取
- 关于2.0之后支持算法是否有变化 HOT 1
- 关于某些算法的参数配置 HOT 1
- 项目的DataFrame,是在pandas的基础上扩展的DataFrame,还是自定义的 HOT 1
- FATE-Builder工程有更新2.1.0版本构建docker镜像的文档吗 HOT 1
- FATE-Builder工程有更新2.X版本构建docker镜像的文档吗 HOT 8
- 关于开发调试和接口
- 目前是否有支持SM2算法?
- How to implement object detection algorithms in homo-nn
- PSI 算法 HOT 1
- Fedkseed HOT 9
- 联邦学习发起方角色是否固定 HOT 3
- 如果我想对框架自定义的Dataframe的元素进行操作,该如何进行 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fate.