MCPcopy Index your code

hub / github.com/imrahulr/hat / types & classes

Types & classes49 in github.com/imrahulr/hat

↓ 5 callersClassLogger
Helper class for logging. Arguments: path (str): Path to log file.
core/utils/logger.py:4
↓ 4 callersClassPreActResNet
Pre-activation Resnet model for TI-200 dataset.
core/models/ti_preact_resnet.py:71
↓ 4 callersClassPreActResNet
Pre-activation Resnet model
core/models/in_preact_resnet.py:71
↓ 4 callersClassPreActResNet
Pre-activation Resnet model
core/models/preact_resnet.py:71
↓ 4 callersClassResNet
ResNet model Arguments: block (BasicBlock or Bottleneck): type of basic block to be used. num_blocks (list): number of blocks
core/models/resnet.py:100
↓ 3 callersClassNetworkBlock
Implements a network block module for WideResnets. Arguments: nb_layers (int): number of layers. in_planes (int): number of i
core/models/wideresnet.py:46
↓ 3 callersClassPreActResNet
PreActResNet model Arguments: num_classes (int): number of output classes. depth (int): number of layers. width (int)
core/models/preact_resnetwithswish.py:68
↓ 3 callersClassSmoothCrossEntropyLoss
Soft cross entropy loss with label smoothing.
core/utils/utils.py:10
↓ 3 callersClassTrainer
Helper class for training a deep neural network. Arguments: info (dict): dataset information. args (dict): input arguments.
core/utils/train.py:30
↓ 3 callersClassWideResNet
WideResNet model Arguments: num_classes (int): number of output classes. depth (int): number of layers. width (int):
core/models/wideresnetwithswish.py:97
↓ 3 callersClass_BlockGroup
WideResNet block group. Arguments: in_planes (int): number of input planes. out_planes (int): number of output filters.
core/models/wideresnetwithswish.py:72
↓ 2 callersClassSemiSupervisedCIFAR10
A dataset with auxiliary pseudo-labeled data for CIFAR10.
core/data/cifar10s.py:45
↓ 2 callersClassSemiSupervisedCIFAR100
A dataset with auxiliary pseudo-labeled data for CIFAR100.
core/data/cifar100s.py:44
↓ 1 callersClassAdversarialDatasetWithPerturbation
Torch dataset for reading examples with corresponding perturbations. Arguments: root (str): path to saved data. transform (to
core/data/utils.py:11
↓ 1 callersClassCosineLR
Cosine annealing LR schedule (used in Carmon et al, 2019).
core/utils/rst.py:6
↓ 1 callersClassFGMAttack
One step fast gradient method. Perturbs the input with gradient (not gradient sign) of the loss wrt the input. Arguments: predict (nn
core/attacks/fgsm.py:62
↓ 1 callersClassFGSMAttack
One step fast gradient sign method (Goodfellow et al, 2014). Arguments: predict (nn.Module): forward pass function. loss_fn (
core/attacks/fgsm.py:9
↓ 1 callersClassImageNet100
core/data/imagenet100.py:16
↓ 1 callersClassL2APGDAttack
APGD attack (from AutoAttack) with order=L2. The attack performs nb_iter steps of adaptive size, while always staying within eps from the ini
core/attacks/apgd.py:55
↓ 1 callersClassL2DeepFoolAttack
DeepFool Attack with order=L2. Arguments: predict (nn.Module): forward pass function. overshoot (float): how much to overshoo
core/attacks/deepfool.py:176
↓ 1 callersClassL2PGDAttack
PGD Attack with order=L2 Arguments: predict (nn.Module): forward pass function. loss_fn (nn.Module): loss function. e
core/attacks/pgd.py:168
↓ 1 callersClassLinfAPGDAttack
APGD attack (from AutoAttack) with order=Linf. The attack performs nb_iter steps of adaptive size, while always staying within eps from the i
core/attacks/apgd.py:37
↓ 1 callersClassLinfDeepFoolAttack
DeepFool Attack with order=Linf. Arguments: Arguments: predict (nn.Module): forward pass function. overshoot (float): how
core/attacks/deepfool.py:153
↓ 1 callersClassLinfPGDAttack
PGD Attack with order=Linf Arguments: predict (nn.Module): forward pass function. loss_fn (nn.Module): loss function.
core/attacks/pgd.py:143
↓ 1 callersClassNormalization
Standardizes the input data. Arguments: mean (list): mean. std (float): standard deviation. Returns: (input - mea
core/models/resnet.py:6
↓ 1 callersClassNumpyToTensor
Transforms a numpy.ndarray to torch.Tensor.
core/utils/utils.py:158
↓ 1 callersClassSemiSupervisedSampler
Balanced sampling from the labeled and unlabeled data.
core/data/semisup.py:122
↓ 1 callersClassWATrainer
Helper class for training a deep neural network with model weight averaging (identical to Gowal et al, 2020). Arguments: info (dict):
gowal21uncovering/utils/watrain.py:29
↓ 1 callersClassWideResNet
WideResNet model Arguments: depth (int): number of layers. num_classes (int): number of output classes. widen_factor
core/models/wideresnet.py:71
↓ 1 callersClass_Block
WideResNet Block. Arguments: in_planes (int): number of input planes. out_planes (int): number of output filters. str
core/models/wideresnetwithswish.py:25
↓ 1 callersClass_PreActBlock
PreAct ResNet Block. Arguments: in_planes (int): number of input planes. out_planes (int): number of output filters.
core/models/preact_resnetwithswish.py:24
↓ 1 callersClassctx_eval
core/utils/context.py:18
↓ 1 callersClassctx_noparamgrad
core/utils/context.py:4
↓ 1 callersClassdotdict
eval-adv.py:173
ClassAPGD
APGD attack (from AutoAttack) (Croce et al, 2020). The attack performs nb_iter steps of adaptive size, while always staying within eps from t
core/attacks/apgd.py:10
ClassAttack
Abstract base class for all attack classes. Arguments: predict (nn.Module): forward pass function. loss_fn (nn.Module): loss
core/attacks/base.py:7
ClassBasicBlock
Implements a basic block module for Resnets. Arguments: in_planes (int): number of input planes. out_planes (int): number of
core/models/resnet.py:33
ClassBasicBlock
Implements a basic block module for WideResNets. Arguments: in_planes (int): number of input planes. out_planes (int): number
core/models/wideresnet.py:10
ClassBottleneck
Implements a basic block module with bottleneck for Resnets. Arguments: in_planes (int): number of input planes. out_planes (
core/models/resnet.py:65
ClassDeepFoolAttack
DeepFool attack. [Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Pascal Frossard, "DeepFool: a simple and accurate method to fool deep
core/attacks/deepfool.py:108
ClassLabelMixin
core/attacks/base.py:39
ClassPGDAttack
The projected gradient descent attack (Madry et al, 2017). The attack performs nb_iter steps of size eps_iter, while always staying within ep
core/attacks/pgd.py:73
ClassPreActBlock
Pre-activation version of the BasicBlock. Arguments: in_planes (int): number of input planes. planes (int): number of output
core/models/ti_preact_resnet.py:6
ClassPreActBlock
Pre-activation version of the BasicBlock for Resnets. Arguments: in_planes (int): number of input planes. planes (int): numbe
core/models/in_preact_resnet.py:6
ClassPreActBlock
Pre-activation version of the BasicBlock for Resnets. Arguments: in_planes (int): number of input planes. planes (int): numbe
core/models/preact_resnet.py:6
ClassPreActBottleneck
Pre-activation version of the original Bottleneck module. Arguments: in_planes (int): number of input planes. planes (int): n
core/models/ti_preact_resnet.py:37
ClassPreActBottleneck
Pre-activation version of the original Bottleneck module for Resnets. Arguments: in_planes (int): number of input planes. pla
core/models/in_preact_resnet.py:37
ClassPreActBottleneck
Pre-activation version of the original Bottleneck module for Resnets. Arguments: in_planes (int): number of input planes. pla
core/models/preact_resnet.py:37
ClassSemiSupervisedDataset
A dataset with auxiliary pseudo-labeled data.
core/data/semisup.py:28