Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davidstutz/confidence-calibrated-adversarial-training
/ functions
Functions
916 in github.com/davidstutz/confidence-calibrated-adversarial-training
⨍
Functions
916
◇
Types & classes
159
Method
fpr_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/corrupted_evaluation.py:597
Method
fpr_at_995tpr
FPR at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:766
Method
fpr_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/clean_evaluation.py:392
Method
fpr_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/distal_evaluation.py:500
Method
fpr_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/corrupted_evaluation.py:587
Method
fpr_at_99tpr
FPR at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:756
Method
fpr_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/distal_evaluation.py:490
Method
getModel
(cls)
tests/test_attacks_normal.py:1051
Method
getModel
(cls)
tests/test_attacks_normal.py:1061
Method
getModel
(cls)
tests/test_attacks_normal.py:1071
Method
getModel
(cls)
tests/test_attacks_normal.py:1125
Method
getModel
(cls)
tests/test_attacks_normal.py:1178
Method
getModel
(cls)
tests/test_distal_attacks_normal.py:222
Method
getModel
(cls)
tests/test_distal_attacks_normal.py:232
Method
getModel
(cls)
tests/test_distal_attacks_normal.py:250
Method
getModel
(cls)
tests/test_attacks_adversarial.py:218
Method
getModel
(cls)
tests/test_attacks_adversarial.py:228
Method
getModelFile
(cls)
tests/test_attacks_normal.py:1047
Method
getModelFile
(cls)
tests/test_attacks_normal.py:1057
Method
getModelFile
(cls)
tests/test_attacks_normal.py:1067
Method
getModelFile
(cls)
tests/test_attacks_normal.py:1121
Method
getModelFile
(cls)
tests/test_attacks_normal.py:1174
Method
getModelFile
(cls)
tests/test_distal_attacks_normal.py:218
Method
getModelFile
(cls)
tests/test_distal_attacks_normal.py:228
Method
getModelFile
(cls)
tests/test_distal_attacks_normal.py:246
Method
getModelFile
(cls)
tests/test_attacks_adversarial.py:214
Method
getModelFile
(cls)
tests/test_attacks_adversarial.py:224
Method
get_augmentation
(crop=True, flip=True)
examples/adversarial_training_robustness.py:223
Method
get_augmentation
(crop=True, flip=True)
examples/normal_training_robustness.py:142
Method
get_augmentation
(crop=True, flip=True)
examples/confidence_calibrated_adversarial_training_robustness.py:223
Function
get_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
Function
get_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
Method
get_figure
Add figure. :param tag: tag :type tag: str :param figure: test :type figure: matplotlib.pyplot.figure
common/summary.py:896
Method
get_figure
Add figure. :param tag: tag :type tag: str
common/summary.py:1009
Method
get_histogram
Add histogram data. :param tag: tag :type tag: str :param values: values :type values: torch.Tensor or numpy
common/summary.py:840
Method
get_histogram
Add histogram data. :param tag: tag :type tag: str
common/summary.py:976
Method
get_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
Method
get_image
Add image. :param tag: tag :type tag: str
common/summary.py:987
Method
get_images
Add images. :param tag: tag :type tag: str :param img_tensor: images :type img_tensor: torch.Tensor or numpy
common/summary.py:878
Method
get_images
Add images. :param tag: tag :type tag: str
common/summary.py:998
Method
get_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
Method
get_parameters
(self)
common/imgaug.py:40
Method
get_parameters
(self)
common/imgaug.py:77
Method
get_parameters
(self)
common/imgaug.py:112
Method
get_parameters
(self)
common/imgaug.py:143
Method
get_scalar
Add scalar value. :param tag: tag for scalar :type tag: str
common/summary.py:954
Method
get_scalars
Add scalar values. :param tag: tag for scalar :type tag: str :param tag_scalar_dict: values :type tag_scalar
common/summary.py:824
Method
get_scalars
Add scalar values. :param tag: tag for scalar :type tag: str
common/summary.py:965
Method
get_text
Add images. :param tag: tag :type tag: str :param text_string: test :type text_string: str :param gl
common/summary.py:914
Method
get_text
Add images. :param tag: tag :type tag: str
common/summary.py:1020
Function
guard
Guard to check that no variables have been defined yet.
experiments/config/helper.py:33
Function
hostname
Get hostname. :return: hostname :rtype: str
common/utils.py:259
Method
layers
Get layer names. :return: layer names :rtype: [str]
models/classifier.py:156
Function
linear_transition
Linear transition rule. :param perturbations: perturbations :type perturbations: torch.autograd.Variable :param norm: norm :type
common/torch.py:633
Function
load
Load model files and perturbation (i.e., adversarial example) files. :param training_configs: training configurations obtained from module()
experiments/eval/misc.py:78
Function
load_adversarial_probabilities
Load adversarial probabilities from perturbation files. :param perturbations_files: perturbation files as from load() :type perturba
experiments/eval/misc.py:254
Function
log_dir
Generate path to log directory. :param directory: directory :type directory: str
common/paths.py:354
Function
log_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
Method
main
Main.
common/experiments.py:310
Function
main2_latex_table
Main LaTeX table.
experiments/eval/misc.py:589
Function
main_latex_table
Main LaTeX table.
experiments/eval/misc.py:536
Function
main_markdown_table
Generate the main results table.
experiments/eval/misc.py:364
Function
max_detector
(probabilities)
common/numpy.py:398
Function
max_log_loss
Loss. :param logits: predicted classes :type logits: torch.autograd.Variable :param targets: target classes :type targets: torch
common/torch.py:537
Function
max_p_loss
Loss. :param logits: predicted classes :type logits: torch.autograd.Variable :param targets: target classes :type targets: torch
common/torch.py:514
Function
mnist_test_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:119
Function
mnist_test_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:141
Function
mnist_train_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:108
Function
mnist_train_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:130
Function
module
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
Method
no_writer
(log_dir, sub_dir='')
experiments/attack.py:74
Method
normalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:56
Method
normalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:92
Method
normalize
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:198
Function
one_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
Function
one_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
Function
partial
Create partial while preserving __name__ and __doc__. :param f: function :type f: callable :param args: arguments :type args: di
common/utils.py:281
Function
pid
PID. :return: PID :rtype: int
common/utils.py:270
Function
power_transition
Power transition rule. :param perturbations: perturbations :type perturbations: torch.autograd.Variable :param norm: norm :type
common/torch.py:653
Method
prepend_layer
Add a layer. :param name: layer name :type name: str :param layer: layer :type layer: torch.nn.Module
models/classifier.py:103
Function
project_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
Function
project_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
Function
project_simplex
Taken from https://gist.github.com/daien/1272551/edd95a6154106f8e28209a1c7964623ef8397246. Compute the Euclidean projection on a positive si
common/numpy.py:191
Function
project_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
Function
projection_simplex_bisection
(v, z=1, tau=0.0001, max_iter=1000)
common/numpy.py:281
Function
projection_simplex_pivot
(v, z=1, random_state=None)
common/numpy.py:252
Method
random_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
Function
random_test_images_file
Random test images. :return: filepath :rtype: str
common/paths.py:295
Function
random_test_labels_file
Random test labels. :return: filepath :rtype: str
common/paths.py:317
Function
random_train_images_file
Random train images. :return: filepath :rtype: str
common/paths.py:284
Function
random_train_labels_file
Random train labels. :return: filepath :rtype: str
common/paths.py:306
Function
raw_cifar10_dir
Raw Cifar10 training directory. :return: fielpath :rtype: str
common/paths.py:163
Function
raw_cifar10c_dir
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:152
Function
raw_mnist_test_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:75
Function
raw_mnist_test_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:97
Function
raw_mnist_train_images_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:64
Function
raw_mnist_train_labels_file
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:86
Function
raw_mnistc_dir
Train images of MNSIT. :return: filepath :rtype: str
common/paths.py:53
Function
raw_svhn_test_file
Raw SVHN training directory. :return: fielpath :rtype: str
common/paths.py:229
Function
raw_svhn_train_file
Raw SVHN training directory. :return: fielpath :rtype: str
common/paths.py:218
← previous
next →
501–600 of 916, ranked by callers