-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mock data and mock models in tests (#135)
* Unit tests now use mock data and mock models * Fixed typo * Refactored to reduce redundancy * Fixed test errors * Fixed plotting error * Fixed plotting error (2) * Fixed plotting error (3) * Fixed tests errors (2) * Fixed tests errors (3) * Fixed tests errors (4)
- Loading branch information
Showing
40 changed files
with
312 additions
and
402 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
from .common import BaseClass | ||
from .text import BERT2LSTM, get_essentials | ||
from .vision import ( | ||
VanillaKD, | ||
VirtualTeacher, | ||
SelfTraining, | ||
TAKD, | ||
RKDLoss, | ||
RCO, | ||
NoisyTeacher, | ||
SoftRandom, | ||
MessyCollab, | ||
MeanTeacher, | ||
LabelSmoothReg, | ||
ProbShift, | ||
DML, | ||
BANN, | ||
CSKD, | ||
DML, | ||
RCO, | ||
TAKD, | ||
Attention, | ||
LabelSmoothReg, | ||
MeanTeacher, | ||
MessyCollab, | ||
NoisyTeacher, | ||
ProbShift, | ||
RKDLoss, | ||
SelfTraining, | ||
SoftRandom, | ||
VanillaKD, | ||
VirtualTeacher, | ||
) | ||
|
||
from .text import BERT2LSTM, get_essentials | ||
from .common import BaseClass |
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from .vanilla import VanillaKD | ||
from .teacher_free import VirtualTeacher, SelfTraining | ||
from .TAKD import TAKD | ||
from .attention import Attention | ||
from .BANN import BANN | ||
from .CSKD import CSKD | ||
from .RKD import RKDLoss | ||
from .RCO import RCO | ||
from .noisy import NoisyTeacher, SoftRandom, MessyCollab | ||
from .mean_teacher import MeanTeacher | ||
from .KA import LabelSmoothReg, ProbShift | ||
from .DML import DML | ||
from .BANN import BANN | ||
from .attention import Attention | ||
from .KA import LabelSmoothReg, ProbShift | ||
from .mean_teacher import MeanTeacher | ||
from .noisy import MessyCollab, NoisyTeacher, SoftRandom | ||
from .RCO import RCO | ||
from .RKD import RKDLoss | ||
from .TAKD import TAKD | ||
from .teacher_free import SelfTraining, VirtualTeacher | ||
from .vanilla import VanillaKD |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .loss_metric import ATLoss | ||
from .attention import Attention | ||
from .loss_metric import ATLoss |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .messy_collab import MessyCollab | ||
from .noisy_teacher import NoisyTeacher | ||
from .soft_random import SoftRandom | ||
from .messy_collab import MessyCollab |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .virtual_teacher import VirtualTeacher | ||
from .self_training import SelfTraining | ||
from .virtual_teacher import VirtualTeacher |
Oops, something went wrong.