federatedai / fedrec Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Inside the definition of class HeteroFMTransferVariable
, there is the following line of code:
self.agg_vx_mul_fg = self._create_variable(name='agg_vx_mul_fg', src=['host'], dst=['guest'])
which means the transmit direction of agg_vx_mul_fg
is from host to guest.
Then, inside file hetero_fm_gradient_and_loss.py
, there is the following lines of code:
def remote_agg_vx_mul_fg(self, agg_vx_mul_fg, suffix=tuple()):
self.agg_vx_mul_fg_transfer.remote(obj=agg_vx_mul_fg, role=consts.HOST, idx=-1, suffix=suffix)
which says the transmit direction of agg_vs_mul_fg
is from guest to host.
So, there is a conflict between these two places of code.
After some try and test, I found that it is a typo in the definition of HeteroFMTransferVariable
. The way it meant to be should be like the following:
self.agg_vx_mul_fg = self._create_variable(name='agg_vx_mul_fg', src=['guest'], dst=['host'])
in other worlds, the transmit direction of agg_vs_mul_fg
should be from guest to host.
And after this modification, I can run the hetero_fm example successfully, which would fail otherwise.
PS: I would like to work on this, but may need some help, like some guides on how to setup environment, what test uint should be added before open a PR. Please let me know who should I contact?
您好,请问把这是把推荐模块分离后单独成立的项目么,如果是的话,请问有没有相关学习文档呢?
FedRec中的HeteroFM目前的实现有Arbiter角色,其作用是:生成公钥与私钥,还有是在Arbiter侧用私钥对密文进行解密。问题是:目前想把Arbiter的工作分配到host与guest侧。比如:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.