A Question about Research mi_lira_2021: Why is logpdf used instead of logcdf?

未关闭
#598 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python

调研方向

首先定位 Research mi_lira_2021 实现,并检查使用 scipy.stats.norm.logpdf 进行的分数计算。将该计算与引用论文中的公式 4 进行比较,并确定该实现是否是有意为之,还是应该使用相应的累积概率;当通过有文档记录的解释或已确认的修正确认并解决这一差异时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Hi,
I have a question regarding how the score for the offline attack is calculated in the Research mi_lira_2021 code.

In the code the score is calculated using logpdf

score = scipy.stats.norm.logpdf(sc, mean_out, std_out+1e-30)

but if I understand correctly this does not match equation 4 in the paper that describes how the score should be calculated. The equation looks like this $\Lambda = 1- Pr[Z > \phi (f(x)_{y} ) ]$, where $Z \sim \mathcal{N} (\mu_o, \sigma^2_o)$ which should mean that cdf should be used and not pdf. Is there any particular reason for why the pdfis used in the implementation over cdf?

主要语言
Python
星标
2k
派生
477
平均合并
17 小时 24 分钟
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tensorflow/privacy 的其他 Issue

查看 tensorflow/privacy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。