MCPcopy Create free account

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

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

↓ 2 callersFunction__normal_training
Normal training configuration. :param directory: directory for models :type directory: str
experiments/config/common.py:960
↓ 2 callersFunction__normalized_pgd
L_inf normalized PGD implementation. :param base_lr: learning rate :type base_lr: float :param max_iterations: iterations :type
experiments/config/common.py:170
↓ 2 callersMethodadd_scalars
Add scalar values. :param tag: tag for scalar :type tag: str :param tag_scalar_dict: values :type tag_scalar
common/summary.py:71
↓ 2 callersMethodforward
Forward pass. :param input: input :type input: torch.autograd.Variable :return: output :rtype: torch.autogra
common/torch.py:713
↓ 2 callersMethodmain
Main.
common/experiments.py:473
↓ 2 callersFunctionprogress
Report progress. :param epoch: epoch :type epoch: int :param batch: batch :type batch: int :param batches: batches :type
common/test.py:9
↓ 2 callersMethodreceiver_operating_characteristic_auc
Computes the ROC curve for correct classified vs. incorrect classified. :return: ROC AUC score :rtype: float
common/eval/corrupted_evaluation.py:382
↓ 2 callersMethodreceiver_operating_characteristic_labels_scores
Labels and scores for ROC. :return: labels and scores for sklearn.metrics.roc_auc_score :rtype: numpy.ndarray, numpy.ndarray
common/eval/corrupted_evaluation.py:363
↓ 2 callersMethodreceiver_operating_characteristic_labels_scores
Labels and scores for ROC. :return: returns labels and scores for sklearn.metrics.roc_auc_score :rtype: numpy.ndarray, numpy
common/eval/adversarial_evaluation.py:531
↓ 2 callersMethodreceiver_operating_characteristic_labels_scores
Define labels and scores for ROC. :return: labels and scores for sklearn.metrics.roc_auc_score :rtype: numpy.ndarray, numpy.
common/eval/clean_evaluation.py:206
↓ 2 callersMethodreceiver_operating_characteristic_labels_scores
Labels and scores for ROC. :return: labels and scores for sklearn.metrics.roc_auc_score :rtype: numpy.ndarray, numpy.ndarray
common/eval/distal_evaluation.py:306
↓ 2 callersMethodsuccessRate
(self, images, perturbations, labels)
tests/test_attacks_normal.py:76
↓ 2 callersMethodtest_error_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/clean_evaluation.py:422
↓ 1 callersMethodROCAUC
(self, images, perturbations, labels)
tests/test_distal_attacks_normal.py:72
↓ 1 callersFunction__confidence_calibrated_adversarial_training
CCAT configuration. :param directory: directory for models :type directory: str :param attack: attack for adversarial training :
experiments/config/common.py:1021
↓ 1 callersFunction__frames
Adversarial frames attack. :param base_lr: learning rate :type base_lr: float :param max_iterations: iterations :type max_iterat
experiments/config/common.py:127
↓ 1 callersFunction__geometry
L_inf geometry attack. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:727
↓ 1 callersFunction__get_augmentation
Get augmentation using imgaug. :param noise: whether to add additive noise :type noise: bool :param crop: whether to apply cropping
experiments/config/common.py:22
↓ 1 callersMethod__init__
(self, model)
attacks/batch_cube2.py:9
↓ 1 callersMethod__init__
(self, model, args)
attacks/batch_corner_search.py:162
↓ 1 callersMethod__init__
Constructor. Exactly one of include_list and exclude_list must be specified. :param img_dims: image dimensions :type img_dim
common/mask.py:15
↓ 1 callersFunction__l0_geometry
L_0 geometry attack. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:787
↓ 1 callersFunction__l0_random
L_0 random sampling. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:864
↓ 1 callersFunction__l1_geometry
L_1 geometry attack. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:767
↓ 1 callersFunction__l1_random
L_1 random sampling. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:845
↓ 1 callersFunction__l2_geometry
L_2 geometry attack. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:747
↓ 1 callersFunction__l2_random
L_2 random sampling. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:826
↓ 1 callersFunction__normalized_random_pgd
L_inf normalized PGD with random and zero initialization for training. :param base_lr: learning rate :type base_lr: float :param max
experiments/config/common.py:444
↓ 1 callersFunction__random
L_inf random sampling. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon :type epsilon: float
experiments/config/common.py:807
↓ 1 callersFunction__reference_pgd
L_inf reference PGD attack. :param base_lr: learning rate :type base_lr: float :param max_iterations: iterations :type max_itera
experiments/config/common.py:148
↓ 1 callersFunction__simple
L_inf simple black-box attack. :param max_iterations: iterations :type max_iterations: int :param epsilon: epsilon for attack :t
experiments/config/common.py:555
↓ 1 callersFunction_distal_ood_supp_latex_table
Distal or OOD supplementary LaTeX table.
experiments/eval/misc.py:870
↓ 1 callersMethodadd_figure
Add figure. :param tag: tag :type tag: str :param figure: test :type figure: matplotlib.pyplot.figure
common/summary.py:143
↓ 1 callersMethodadd_image
Add image. :param tag: tag :type tag: str :param img_tensor: image :type img_tensor: torch.Tensor or numpy.n
common/summary.py:107
↓ 1 callersMethodadd_targets
Add attack targets. :param targets: targets :type targets: numpy.ndarray
common/datasets.py:138
↓ 1 callersFunctionattack
Attack model. :param model: model :type model: torch.nn.Module :param testset: test set :type testset: torch.utils.data.Data
common/test.py:86
↓ 1 callersFunctionbhattacharyya_coefficient
Loss. :param logits: predicted logits :type logits: torch.autograd.Variable :param targets: target distributions :type targets:
common/torch.py:588
↓ 1 callersFunctioncheck_common
()
setup.py:127
↓ 1 callersFunctioncheck_h5py
Check h5py installation.
setup.py:45
↓ 1 callersFunctioncheck_simple
Checks packages that can be installed via PIP.
setup.py:1
↓ 1 callersFunctioncheck_tensorboard
()
setup.py:105
↓ 1 callersFunctioncheck_torch
Check torch installation.
setup.py:62
↓ 1 callersFunctionconvert_dataset
Convert MNIST.
data/mnist/convert_mnist.py:11
↓ 1 callersFunctionconvert_dataset
Convert SVHN.
data/svhn/convert_svhn.py:11
↓ 1 callersMethoddispatch
Simply write log message.
common/log.py:137
↓ 1 callersFunctiondownload
Download and convert Cifar10.
data/cifar10/convert_cifar.py:14
↓ 1 callersMethodevaluate
Evaluate.
examples/adversarial_training_robustness.py:295
↓ 1 callersMethodevaluate
Evaluate.
examples/normal_training_robustness.py:236
↓ 1 callersMethodevaluate
Evaluate.
examples/confidence_calibrated_adversarial_training_robustness.py:298
↓ 1 callersFunctionexpand_as
Expands the tensor using view to allow broadcasting. :param array: input tensor :type array: numpy.ndarray :param array_as: referenc
common/numpy.py:27
↓ 1 callersFunctionfind_incomplete_state_file
State file. :param model_file: base state file :type model_file: str :return: state file of ongoing training :rtype: str
common/experiments.py:18
↓ 1 callersFunctionfind_incomplete_state_file
State file. :param model_file: base state file :type model_file: str :return: state file of ongoing training :rtype: str
examples/adversarial_training_robustness.py:19
↓ 1 callersFunctionfind_incomplete_state_file
State file. :param model_file: base state file :type model_file: str :return: state file of ongoing training :rtype: str
examples/normal_training_robustness.py:19
↓ 1 callersFunctionfind_incomplete_state_file
State file. :param model_file: base state file :type model_file: str :return: state file of ongoing training :rtype: str
examples/confidence_calibrated_adversarial_training_robustness.py:19
↓ 1 callersMethodflush
Save.
common/summary.py:782
↓ 1 callersMethodforward
Forward pass. :param input: input :type input: torch.autograd.Variable :return: output :rtype: torch.autogra
common/torch.py:900
↓ 1 callersMethodgetModel
(cls)
tests/test_attacks_normal.py:73
↓ 1 callersMethodgetModel
(cls)
tests/test_distal_attacks_normal.py:69
↓ 1 callersMethodgetModel
(cls)
tests/test_attacks_adversarial.py:79
↓ 1 callersMethodget_attack
Get attacks to test.
examples/normal_training_robustness.py:213
↓ 1 callersMethodget_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:38
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
experiments/train.py:34
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
experiments/attack_board.py:33
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
experiments/train_board.py:34
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
experiments/attack.py:37
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
examples/adversarial_training_robustness.py:91
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
examples/normal_training_robustness.py:91
↓ 1 callersMethodget_parser
Get parser. :return: parser :rtype: argparse.ArgumentParser
examples/confidence_calibrated_adversarial_training_robustness.py:91
↓ 1 callersMethodget_scalar
Add scalar value. :param tag: tag for scalar :type tag: str :param value: value :type value: mixed :
common/summary.py:808
↓ 1 callersMethodget_test_attacks
Get attacks to test.
examples/adversarial_training_robustness.py:160
↓ 1 callersMethodget_test_attacks
Get attacks to test.
examples/confidence_calibrated_adversarial_training_robustness.py:160
↓ 1 callersMethodget_training_attack
Get attack for training.
examples/adversarial_training_robustness.py:137
↓ 1 callersMethodget_training_attack
Get attack for training.
examples/confidence_calibrated_adversarial_training_robustness.py:137
↓ 1 callersMethodinsert_layer
Add a layer. :param index: index :type index: int :param name: layer name :type name: str :param lay
models/classifier.py:115
↓ 1 callersFunctionload_model
Load a model. :param model_file: model file :type model_file: str :param cuda: use on GPU :type cuda: bool :return: model
experiments/eval/misc.py:190
↓ 1 callersMethodmain
Main.
experiments/attack_board.py:50
↓ 1 callersMethodmain
Main.
experiments/train_board.py:49
↓ 1 callersMethodmain
Main.
experiments/attack.py:55
↓ 1 callersMethodmain
Main.
examples/adversarial_training_robustness.py:329
↓ 1 callersMethodmain
Main.
examples/normal_training_robustness.py:255
↓ 1 callersMethodmain
Main.
examples/confidence_calibrated_adversarial_training_robustness.py:332
↓ 1 callersFunctionmemory
Get memory usage. :return: memory usage :rtype: str
common/torch.py:8
↓ 1 callersMethodnormalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:142
↓ 1 callersFunctionnpixels_perturbation
creates n_iter images which differ from orig_x in at most k pixels
attacks/batch_corner_search.py:100
↓ 1 callersFunctiononepixel_perturbation
returns a batch with the possible perturbations of the pixel in position pos
attacks/batch_corner_search.py:6
↓ 1 callersFunctiononepixel_perturbation_image
returns a batch with all the possible perturbations of the image orig_x
attacks/batch_corner_search.py:56
↓ 1 callersFunctionopened_hdf5
Close all open HDF5 files and report number of closed files. :return: number of closed files :rtype: int
common/utils.py:123
↓ 1 callersMethodperturb
(self, x_nat, y_nat)
attacks/batch_corner_search.py:184
↓ 1 callersFunctionprojection_simplex_sort
(v, z=1)
common/numpy.py:240
↓ 1 callersFunctionpseudo_gaussian_pert
(s)
attacks/batch_cube2.py:43
↓ 1 callersMethodrandom_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:26
↓ 1 callersMethodscale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:30
↓ 1 callersMethodsetDatasets
(cls)
tests/test_attacks_normal.py:60
↓ 1 callersMethodsetDatasets
(cls)
tests/test_distal_attacks_normal.py:57
↓ 1 callersMethodsetDatasets
(cls)
tests/test_attacks_adversarial.py:66
↓ 1 callersMethodsetup
Setup.
common/experiments.py:245
↓ 1 callersMethodsetup
Set dataloaders.
examples/adversarial_training_robustness.py:107
↓ 1 callersMethodsetup
Set dataloaders.
examples/normal_training_robustness.py:107
↓ 1 callersMethodsetup
Set dataloaders.
examples/confidence_calibrated_adversarial_training_robustness.py:107
↓ 1 callersFunctionsigma_map
creates the sigma-map for the batch x
attacks/batch_corner_search.py:134
← previousnext →101–200 of 916, ranked by callers