Repository navigation
Commit c5a3633
Fix sample weight generation in membership_inference_attack_test.
* Replace `rng.randn` with `rng.rand` for sample weights in MIA test helpers to
ensure non-negative sample weights required by `RandomForestClassifier`'s
bootstrap sampling logic.
PiperOrigin-RevId: 9714229961 parent e5d2dea commit c5a3633
1 file changed
Lines changed: 6 additions & 4 deletions
File tree
- tensorflow_privacy/privacy/privacy_tests/membership_inference_attack
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
0 commit comments