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
Function
read_hdf5
Read a tensor, i.e. numpy array, from HDF5. :param filepath: path to file to read :type filepath: str :param key: key to read :t
common/utils.py:71
Function
read_json
Read a JSON file. :param file: path to file to read :type file: str :return: parsed JSON as dict :rtype: dict
common/utils.py:177
Function
read_pickle
Read pickle file. :param file: path to file to read :type file: str :return: mixed :rtype: mixed
common/utils.py:159
Method
receiver_operating_characteristic_curve
Computes the ROC curve for correct classified vs. incorrect classified. :return: false positive rates, true positive rates, threshol
common/eval/corrupted_evaluation.py:396
Method
receiver_operating_characteristic_curve
Computes the ROC curve for correct classified vs. incorrect classified. :return: false positive rates, true positive rates, threshol
common/eval/adversarial_evaluation.py:565
Method
receiver_operating_characteristic_curve
Computes the ROC curve for correct classified vs. incorrect classified. :return: false positive rates, true positive rates, threshol
common/eval/clean_evaluation.py:231
Method
receiver_operating_characteristic_curve
Computes the ROC curve for correct classified vs. incorrect classified. :return: false positive rates, true positive rates, threshol
common/eval/distal_evaluation.py:339
Function
remove
Remove a file. :param filepath: path to file :type filepath: str
common/utils.py:222
Method
reset
Reset timer.
common/timer.py:17
Method
robust_test_error_at_95tpr
Robust test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:856
Method
robust_test_error_at_98tpr
Robust test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:866
Method
robust_test_error_at_995tpr
Robust test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:886
Method
robust_test_error_curve
Robust test error curve. :return: robust test errors and thresholds :rtype: numpy.ndarray, numpy.ndarray
common/eval/adversarial_evaluation.py:445
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_zoo.py:54
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_cube.py:36
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_simple.py:30
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_random.py:33
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_cube2.py:306
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_corner_search.py:279
Method
run
Run LaVAN attack :param model: model to attack, must contain normalization layer to work correctly :type model: torch.nn.Mod
attacks/batch_frames.py:31
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_reference_pgd.py:57
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_query_limited.py:57
Method
run
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_geometry.py:27
Method
sample_standard_gaussian_antithetic
Sample from Gaussian using antithetic sampling as described in [1]. [1] Andrew Ilyas, Logan Engstrom, Anish Athalye,
attacks/batch_query_limited.py:128
Method
scale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:66
Method
scale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:102
Method
scale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:159
Method
scale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:209
Method
setDatasets
(cls)
tests/test_attacks_normal.py:1165
Method
setDatasets
(cls)
tests/test_distal_attacks_normal.py:238
Method
setUp
(self)
tests/test_datasets.py:13
Method
setUp
(self)
tests/test_schedulers.py:22
Method
setUp
(self)
tests/test_train_models.py:22
Method
setUp
(self)
tests/test_train_models.py:60
Method
setUp
(self)
tests/test_train_models.py:81
Method
setUp
(self)
tests/test_tensorboard.py:30
Method
setUp
(self)
tests/test_test.py:23
Method
setUp
(self)
tests/test_dataloader.py:16
Method
setUp
(self)
tests/test_state.py:11
Method
setUp
(self)
tests/test_train.py:22
Method
setUp
(self)
tests/test_train.py:277
Method
setUpClass
(cls)
tests/test_tensorboard.py:25
Method
setUpClass
(cls)
tests/test_attacks_normal.py:22
Method
setUpClass
(cls)
tests/test_distal_attacks_normal.py:21
Method
setUpClass
(cls)
tests/test_attacks_adversarial.py:21
Method
success_rate_at_95tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:816
Method
success_rate_at_98tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:826
Method
success_rate_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:846
Method
success_rate_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:836
Method
success_rate_curve
Success rate curve. :return: success rates and confidences :rtype: numpy.ndarray, numpy.ndarray
common/eval/adversarial_evaluation.py:521
Method
summary_dict
Helper for summaries, converts array of values to dict; :param values: values :type values: numpy.ndarray or torch.Tensor
attacks/attack.py:42
Function
supp_latex_table
Supplementary LaTeX table.
experiments/eval/misc.py:648
Function
svhn_test_images_file
SVHN test images. :return: filepath :rtype: str
common/paths.py:251
Function
svhn_test_labels_file
SVHN test labels. :return: filepath :rtype: str
common/paths.py:273
Function
svhn_train_images_file
SVHN train images. :return: filepath :rtype: str
common/paths.py:240
Function
svhn_train_labels_file
SVHN train labels. :return: filepath :rtype: str
common/paths.py:262
Method
tearDown
(self)
tests/test_datasets.py:148
Method
tearDown
(self)
tests/test_state.py:260
Function
tensor_or_value
Get tensor or single value. :param mixed: variable, tensor or value :type mixed: mixed :return: tensor or value :rtype: torch.Te
common/torch.py:367
Function
test
Test a model on a clean or adversarial dataset. :param model: model :type model: torch.nn.Module :param testset: test set :type
common/test.py:33
Method
testAddScalars
(self)
tests/test_tensorboard.py:131
Method
testAdversarial
(self)
tests/test_datasets.py:96
Method
testAdversarialEvaluationAttemptsNoValidation
(self)
tests/test_eval.py:1554
Method
testAdversarialEvaluationAttemptsNoValidationTrivialScores
(self)
tests/test_eval.py:1600
Method
testAdversarialEvaluationCorrectShapes
(self)
tests/test_eval.py:395
Method
testAdversarialEvaluationCorrectShapesWithErrors
(self)
tests/test_eval.py:459
Method
testAdversarialEvaluationNotCorrectClasses
(self)
tests/test_eval.py:543
Method
testAdversarialEvaluationNotCorrectShape
(self)
tests/test_eval.py:279
Method
testAdversarialEvaluationNotProbabilities
(self)
tests/test_eval.py:571
Method
testAdversarialEvaluationROCAUCNoValidation
(self)
tests/test_eval.py:1142
Method
testAdversarialEvaluationROCAUCNoValidationTrivialScores
(self)
tests/test_eval.py:1206
Method
testAdversarialEvaluationRobustTestErrorAtNoValidation
(self)
tests/test_eval.py:892
Method
testAdversarialEvaluationRobustTestErrorAtNoValidationTrivialScores
(self)
tests/test_eval.py:1013
Method
testAdversarialEvaluationRobustTestErrorNoValidation
(self)
tests/test_eval.py:827
Method
testAdversarialEvaluationRobustTestErrorNoValidationTrivialScores
(self)
tests/test_eval.py:859
Method
testAdversarialEvaluationSuccessRateNoValidation
(self)
tests/test_eval.py:752
Method
testAdversarialEvaluationSuccessRateNoValidationTrivialScores
(self)
tests/test_eval.py:787
Method
testAdversarialEvaluationTPRAndFPR
(self)
tests/test_eval.py:1278
Method
testAdversarialEvaluationTPRAndFPRScores
(self)
tests/test_eval.py:1458
Method
testAdversarialEvaluationTPRAndFPRTrivialScores
(self)
tests/test_eval.py:1366
Method
testAdversarialEvaluationTestErrorNoValidation
(self)
tests/test_eval.py:626
Method
testAdversarialEvaluationTestErrorNoValidationTrivialScores
(self)
tests/test_eval.py:685
Method
testAdversarialIndices
(self)
tests/test_datasets.py:119
Method
testAdversarialIndicesWithMultipleAttempts
(self)
tests/test_datasets.py:131
Method
testAdversarialTraining
(self)
tests/test_tensorboard.py:56
Method
testAdversarialTraining
(self)
tests/test_train.py:142
Method
testAdversarialTrainingFraction
(self)
tests/test_train.py:177
Method
testAdversarialWithMultipleAttempts
(self)
tests/test_datasets.py:105
Method
testAttack
(self)
tests/test_test.py:40
Method
testAugmentationClipMultipleImages
(self)
tests/test_imgaug.py:70
Method
testAugmentationClipSingleImage
(self)
tests/test_imgaug.py:53
Method
testAugmentationTransposeMultipleImages
(self)
tests/test_imgaug.py:32
Method
testAugmentationTransposeSingleImage
(self)
tests/test_imgaug.py:13
Method
testBatchAffine
(self)
tests/test_attacks_normal.py:1011
Method
testBatchCube
(self)
tests/test_attacks_normal.py:954
Method
testBatchCube2L2
(self)
tests/test_attacks_normal.py:978
Method
testBatchCube2LInf
(self)
tests/test_attacks_normal.py:966
Method
testBatchGeometry
(self)
tests/test_attacks_normal.py:989
Method
testBatchGradientDescentDeterministicNormalized
(self)
tests/test_attacks_normal.py:733
Method
testBatchGradientDescentDeterministicNormalizedBacktrack
(self)
tests/test_attacks_normal.py:744
← previous
next →
601–700 of 916, ranked by callers