MCPcopy Create free account

hub / github.com/davidstutz/confidence-calibrated-adversarial-training / functions

Functions916 in github.com/davidstutz/confidence-calibrated-adversarial-training

Methodfpr_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/corrupted_evaluation.py:597
Methodfpr_at_995tpr
FPR at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:766
Methodfpr_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/clean_evaluation.py:392
Methodfpr_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/distal_evaluation.py:500
Methodfpr_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/corrupted_evaluation.py:587
Methodfpr_at_99tpr
FPR at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:756
Methodfpr_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/distal_evaluation.py:490
MethodgetModel
(cls)
tests/test_attacks_normal.py:1051
MethodgetModel
(cls)
tests/test_attacks_normal.py:1061
MethodgetModel
(cls)
tests/test_attacks_normal.py:1071
MethodgetModel
(cls)
tests/test_attacks_normal.py:1125
MethodgetModel
(cls)
tests/test_attacks_normal.py:1178
MethodgetModel
(cls)
tests/test_distal_attacks_normal.py:222
MethodgetModel
(cls)
tests/test_distal_attacks_normal.py:232
MethodgetModel
(cls)
tests/test_distal_attacks_normal.py:250
MethodgetModel
(cls)
tests/test_attacks_adversarial.py:218
MethodgetModel
(cls)
tests/test_attacks_adversarial.py:228
MethodgetModelFile
(cls)
tests/test_attacks_normal.py:1047
MethodgetModelFile
(cls)
tests/test_attacks_normal.py:1057
MethodgetModelFile
(cls)
tests/test_attacks_normal.py:1067
MethodgetModelFile
(cls)
tests/test_attacks_normal.py:1121
MethodgetModelFile
(cls)
tests/test_attacks_normal.py:1174
MethodgetModelFile
(cls)
tests/test_distal_attacks_normal.py:218
MethodgetModelFile
(cls)
tests/test_distal_attacks_normal.py:228
MethodgetModelFile
(cls)
tests/test_distal_attacks_normal.py:246
MethodgetModelFile
(cls)
tests/test_attacks_adversarial.py:214
MethodgetModelFile
(cls)
tests/test_attacks_adversarial.py:224
Methodget_augmentation
(crop=True, flip=True)
examples/adversarial_training_robustness.py:223
Methodget_augmentation
(crop=True, flip=True)
examples/normal_training_robustness.py:142
Methodget_augmentation
(crop=True, flip=True)
examples/confidence_calibrated_adversarial_training_robustness.py:223
Functionget_class
See https://stackoverflow.com/questions/1176136/convert-string-to-python-class-object?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=g
common/utils.py:234
Functionget_exponential_scheduler
Get exponential scheduler. Note that the resulting optimizer's step function is called after each batch! :param optimizer: optimizer
common/train/__init__.py:12
Methodget_figure
Add figure. :param tag: tag :type tag: str :param figure: test :type figure: matplotlib.pyplot.figure
common/summary.py:896
Methodget_figure
Add figure. :param tag: tag :type tag: str
common/summary.py:1009
Methodget_histogram
Add histogram data. :param tag: tag :type tag: str :param values: values :type values: torch.Tensor or numpy
common/summary.py:840
Methodget_histogram
Add histogram data. :param tag: tag :type tag: str
common/summary.py:976
Methodget_image
Add image. :param tag: tag :type tag: str :param img_tensor: image :type img_tensor: torch.Tensor or numpy.n
common/summary.py:860
Methodget_image
Add image. :param tag: tag :type tag: str
common/summary.py:987
Methodget_images
Add images. :param tag: tag :type tag: str :param img_tensor: images :type img_tensor: torch.Tensor or numpy
common/summary.py:878
Methodget_images
Add images. :param tag: tag :type tag: str
common/summary.py:998
Methodget_masks
Gets mask in image shape given mask coordinates :param mask_coords: mask coordinates for the batch of masks :type mask_coord
common/mask.py:84
Methodget_parameters
(self)
common/imgaug.py:40
Methodget_parameters
(self)
common/imgaug.py:77
Methodget_parameters
(self)
common/imgaug.py:112
Methodget_parameters
(self)
common/imgaug.py:143
Methodget_scalar
Add scalar value. :param tag: tag for scalar :type tag: str
common/summary.py:954
Methodget_scalars
Add scalar values. :param tag: tag for scalar :type tag: str :param tag_scalar_dict: values :type tag_scalar
common/summary.py:824
Methodget_scalars
Add scalar values. :param tag: tag for scalar :type tag: str
common/summary.py:965
Methodget_text
Add images. :param tag: tag :type tag: str :param text_string: test :type text_string: str :param gl
common/summary.py:914
Methodget_text
Add images. :param tag: tag :type tag: str
common/summary.py:1020
Functionguard
Guard to check that no variables have been defined yet.
experiments/config/helper.py:33
Functionhostname
Get hostname. :return: hostname :rtype: str
common/utils.py:259
Methodlayers
Get layer names. :return: layer names :rtype: [str]
models/classifier.py:156
Functionlinear_transition
Linear transition rule. :param perturbations: perturbations :type perturbations: torch.autograd.Variable :param norm: norm :type
common/torch.py:633
Functionload
Load model files and perturbation (i.e., adversarial example) files. :param training_configs: training configurations obtained from module()
experiments/eval/misc.py:78
Functionload_adversarial_probabilities
Load adversarial probabilities from perturbation files. :param perturbations_files: perturbation files as from load() :type perturba
experiments/eval/misc.py:254
Functionlog_dir
Generate path to log directory. :param directory: directory :type directory: str
common/paths.py:354
Functionlog_file
Generate path to log file. :param directory: directory :type directory: str :param name: name of file :type name: str :retur
common/paths.py:365
Methodmain
Main.
common/experiments.py:310
Functionmain2_latex_table
Main LaTeX table.
experiments/eval/misc.py:589
Functionmain_latex_table
Main LaTeX table.
experiments/eval/misc.py:536
Functionmain_markdown_table
Generate the main results table.
experiments/eval/misc.py:364
Functionmax_detector
(probabilities)
common/numpy.py:398
Functionmax_log_loss
Loss. :param logits: predicted classes :type logits: torch.autograd.Variable :param targets: target classes :type targets: torch
common/torch.py:537
Functionmax_p_loss
Loss. :param logits: predicted classes :type logits: torch.autograd.Variable :param targets: target classes :type targets: torch
common/torch.py:514
Functionmnist_test_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:119
Functionmnist_test_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:141
Functionmnist_train_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:108
Functionmnist_train_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:130
Functionmodule
Load module and training as well as attack configuration. :param config_module: config module such as config.mnist :type config_module:
experiments/eval/misc.py:39
Methodno_writer
(log_dir, sub_dir='')
experiments/attack.py:74
Methodnormalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:56
Methodnormalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:92
Methodnormalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:198
Functionone_hot
Convert class labels to one-hot vectors. :param classes: classes as B x 1 :type classes: torch.autograd.Variable or torch.Tensor :pa
common/torch.py:246
Functionone_hot
Convert an array of numbers to an array of one-hot vectors. :param array: classes to convert :type array: numpy.ndarray :param N: nu
common/numpy.py:6
Functionpartial
Create partial while preserving __name__ and __doc__. :param f: function :type f: callable :param args: arguments :type args: di
common/utils.py:281
Functionpid
PID. :return: PID :rtype: int
common/utils.py:270
Functionpower_transition
Power transition rule. :param perturbations: perturbations :type perturbations: torch.autograd.Variable :param norm: norm :type
common/torch.py:653
Methodprepend_layer
Add a layer. :param name: layer name :type name: str :param layer: layer :type layer: torch.nn.Module
models/classifier.py:103
Functionproject_ball
Compute the orthogonal projection of the input tensor (as vector) onto the L_ord epsilon-ball. **Assumes the first dimension to be batch dim
common/torch.py:278
Functionproject_ball
Compute the orthogonal projection of the input tensor (as vector) onto the L_ord epsilon-ball. **Assumes the first dimension to be batch dim
common/numpy.py:300
Functionproject_simplex
Taken from https://gist.github.com/daien/1272551/edd95a6154106f8e28209a1c7964623ef8397246. Compute the Euclidean projection on a positive si
common/numpy.py:191
Functionproject_sphere
Compute the orthogonal projection of the input tensor (as vector) onto the L_ord epsilon-ball. **Assumes the first dimension to be batch dim
common/torch.py:334
Functionprojection_simplex_bisection
(v, z=1, tau=0.0001, max_iter=1000)
common/numpy.py:281
Functionprojection_simplex_pivot
(v, z=1, random_state=None)
common/numpy.py:252
Methodrandom_location
Generates n mask coordinates randomly from allowed locations :param n: number of masks to generate, defaults to 1 :type n: i
common/mask.py:72
Functionrandom_test_images_file
Random test images. :return: filepath :rtype: str
common/paths.py:295
Functionrandom_test_labels_file
Random test labels. :return: filepath :rtype: str
common/paths.py:317
Functionrandom_train_images_file
Random train images. :return: filepath :rtype: str
common/paths.py:284
Functionrandom_train_labels_file
Random train labels. :return: filepath :rtype: str
common/paths.py:306
Functionraw_cifar10_dir
Raw Cifar10 training directory. :return: fielpath :rtype: str
common/paths.py:163
Functionraw_cifar10c_dir
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:152
Functionraw_mnist_test_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:75
Functionraw_mnist_test_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:97
Functionraw_mnist_train_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:64
Functionraw_mnist_train_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:86
Functionraw_mnistc_dir
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:53
Functionraw_svhn_test_file
Raw SVHN training directory. :return: fielpath :rtype: str
common/paths.py:229
Functionraw_svhn_train_file
Raw SVHN training directory. :return: fielpath :rtype: str
common/paths.py:218
← previousnext →501–600 of 916, ranked by callers