-
Notifications
You must be signed in to change notification settings - Fork 18
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
Refactoring #72
base: main
Are you sure you want to change the base?
Refactoring #72
Conversation
Codecov Report
@@ Coverage Diff @@
## main #72 +/- ##
============================================
- Coverage 100.00% 19.51% -80.49%
============================================
Files 16 17 +1
Lines 603 615 +12
============================================
- Hits 603 120 -483
- Misses 0 495 +495
|
Removing imports |
did a refactoring @someshsingh22. Do take a look at the code and solve for any merge issues |
@mehulrastogi |
import numpy as np | ||
import torch | ||
|
||
from code_soup.common.perturbation import Perturbation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file according to the factoring will come under vision-> utils. Please do the needful
Also the common perturbation file should come under common->utils
@@ -1,6 +0,0 @@ | |||
from code_soup.common.vision.datasets.image_classification import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you be importing this directly in the files where required?
@@ -0,0 +1,12 @@ | |||
from abc import ABC, abstractmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This abstract method to be under common-utils now
fixes #70