Problem with predictions using Gaussian Noise defence #1674
-
Hello,
and this is the error that is prompted:
Is this a bug or am I doing something wrong? Thank you for the support |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @GianlucaMega Thank you for raising this question! I think this is indeed a bug, the division in line 73 works only for a single sample. To be able to handle mini-batches line 73 should be I'll transform this discussion into a bug report issue. Would you be interested to open a pull request with the solution to branch |
Beta Was this translation helpful? Give feedback.
Hi @GianlucaMega Thank you for raising this question! I think this is indeed a bug, the division in line 73 works only for a single sample. To be able to handle mini-batches line 73 should be
sums = np.sum(post_preds, axis=1, keepdims=True)
.I'll transform this discussion into a bug report issue.
Would you be interested to open a pull request with the solution to branch
dev_1.10.2
?