-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SmoothMix PyTorch Implementation #1988
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
…ated a separate estimator for smoothmix Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
…-robustness-toolbox into smoothmix-addition
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Codecov Report
@@ Coverage Diff @@
## dev_1.14.0 #1988 +/- ##
==============================================
- Coverage 85.41% 85.36% -0.06%
==============================================
Files 290 293 +3
Lines 25437 25669 +232
Branches 4573 4599 +26
==============================================
+ Hits 21728 21913 +185
- Misses 2541 2580 +39
- Partials 1168 1176 +8
|
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
""" | ||
raise NotImplementedError | ||
|
||
def fit(self, x: np.ndarray, y: np.ndarray, batch_size: int = 128, nb_epochs: int = 10, **kwargs) -> None: |
Check notice
Code scanning / CodeQL
Mismatch between signature and use of an overridden method
Overridden method signature does not match [call](1), where it is passed an argument named 'scheduler'. Overriding method [method PyTorchSmoothMix.fit](2) matches the call.
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
16 tasks
Closed in favor of #2218 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Implementation of the SmoothMix training method for PyTorch models through the
art.estimators.certification.PyTorchSmoothMix
class. Includes theart.estimators.certification.SmoothMixMixin
abstract class for future TensorFlow and Numpy implementations.Additionally includes a notebook that demonstrates the usage. The
notebooks/README.md
is updated accordingly to include this new notebook.This PR is continued and consolidated from
Paper Link: https://arxiv.org/abs/2111.09277
Code Repository based on paper: https://github.com/jh-jeong/smoothmix
Fixes # (issue)
Type of change
Please check all relevant options.
Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.
PyTorchSmoothMix
classTest Configuration:
Checklist