-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 SPU 实现 OneHotEncoder #725
Comments
Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon. |
38832234 Give it to me |
Hello! Congratulations on successfully claiming this task, and thank you for your support of the OSCP! Please complete your contribution within two weeks, otherwise, the task will be released. If you have any questions, please let us know. 😄 恭喜你成功认领了该任务,感谢对 OSCP 的支持~请在 2周内完成该任务贡献,否则,该任务将会被释放哦~如果你有任何疑问,请告知我们~😄 |
@Candicepan @Yeekin-GYJ @deadlywing hello,我这边目前实现完成了,我看提交说明里提到:“提交说明: 关联该 isuue 并提交代码至 https://github.com/secretflow/spu/tree/main/sml (具体目录位置请与reviewer讨论)” 但是我的实现依赖了如下的库: import jax.numpy as jnp 主要是有一些secretflow的依赖; 请问具体是提交在哪里? |
@deadlywing 我好像理解有点问题,实现的方式没有以算法方式而是以工程方式去做了 |
本任务具体提交要求:
|
明白了,那是我之前理解错了,我在secretflow里按照组件的方式实现了横向的onehot算子; 实际上这个题的意思是:用jax.numpy以jittable的方式实现横向场景下的onehot,同时用仿真器将这个算子结合spu进行执行成功就可以了,因为只要是在spu里的算子,就是可证安全的,我这么理解对吧 |
@MiKKiYang spu/sml/preprocessing/preprocessing.py Lines 209 to 235 in d4ba2f2
只需要关注逻辑本身即可,,至于SF中的分布式,partition等概念是完成不需要感知的,, |
Anyway,,你在实现算法的时候只要假设你是在写一个中心化的算法即可,只在测试的时候调用SPU提供的API将数据加密以及封装要运行的函数即可,具体可以参考tests/ 和 emulations/ 目录下原有的一些代码~ |
任务介绍
详细要求
能力要求
操作说明
贡献说明
贡献指引文档:https://github.com/secretflow/spu/blob/main/sml/development.md
PR 提交注意事项“签署 CLA,添加 license,具体的 python 代码规范,格式化工具以及在 vscode 中的配置和使用(仅供参考,其余 IDE 类似,只要使用 black 和 isort 即可)等详细内容可以参考文档 中的对应内容 (至于单测等规范请参考本 issue 中的示例部分完成)
更多可参考内容:隐语 MOOC 2期视频:
○ https://www.bilibili.com/video/BV1ba4y1S73z/?spm_id_from=333.788
○ https://www.bilibili.com/video/BV1Qe411D7MG/?spm_id_from=333.788
The text was updated successfully, but these errors were encountered: