MCPcopy Create free account

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

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

Functionread_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
Functionread_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
Functionread_pickle
Read pickle file. :param file: path to file to read :type file: str :return: mixed :rtype: mixed
common/utils.py:159
Methodreceiver_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
Methodreceiver_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
Methodreceiver_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
Methodreceiver_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
Functionremove
Remove a file. :param filepath: path to file :type filepath: str
common/utils.py:222
Methodreset
Reset timer.
common/timer.py:17
Methodrobust_test_error_at_95tpr
Robust test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:856
Methodrobust_test_error_at_98tpr
Robust test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:866
Methodrobust_test_error_at_995tpr
Robust test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:886
Methodrobust_test_error_curve
Robust test error curve. :return: robust test errors and thresholds :rtype: numpy.ndarray, numpy.ndarray
common/eval/adversarial_evaluation.py:445
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_zoo.py:54
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_cube.py:36
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_simple.py:30
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_random.py:33
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_cube2.py:306
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_corner_search.py:279
Methodrun
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
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_reference_pgd.py:57
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_query_limited.py:57
Methodrun
Run attack. :param model: model to attack :type model: torch.nn.Module :param images: images :type images: t
attacks/batch_geometry.py:27
Methodsample_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
Methodscale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:66
Methodscale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:102
Methodscale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:159
Methodscale
Normalization. :param gradients: gradients :type gradients: torch.autograd.Variable
attacks/norms.py:209
MethodsetDatasets
(cls)
tests/test_attacks_normal.py:1165
MethodsetDatasets
(cls)
tests/test_distal_attacks_normal.py:238
MethodsetUp
(self)
tests/test_datasets.py:13
MethodsetUp
(self)
tests/test_schedulers.py:22
MethodsetUp
(self)
tests/test_train_models.py:22
MethodsetUp
(self)
tests/test_train_models.py:60
MethodsetUp
(self)
tests/test_train_models.py:81
MethodsetUp
(self)
tests/test_tensorboard.py:30
MethodsetUp
(self)
tests/test_test.py:23
MethodsetUp
(self)
tests/test_dataloader.py:16
MethodsetUp
(self)
tests/test_state.py:11
MethodsetUp
(self)
tests/test_train.py:22
MethodsetUp
(self)
tests/test_train.py:277
MethodsetUpClass
(cls)
tests/test_tensorboard.py:25
MethodsetUpClass
(cls)
tests/test_attacks_normal.py:22
MethodsetUpClass
(cls)
tests/test_distal_attacks_normal.py:21
MethodsetUpClass
(cls)
tests/test_attacks_adversarial.py:21
Methodsuccess_rate_at_95tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:816
Methodsuccess_rate_at_98tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:826
Methodsuccess_rate_at_995tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:846
Methodsuccess_rate_at_99tpr
Test error at 95%TPR. :return: robust test error :rtype: float
common/eval/adversarial_evaluation.py:836
Methodsuccess_rate_curve
Success rate curve. :return: success rates and confidences :rtype: numpy.ndarray, numpy.ndarray
common/eval/adversarial_evaluation.py:521
Methodsummary_dict
Helper for summaries, converts array of values to dict; :param values: values :type values: numpy.ndarray or torch.Tensor
attacks/attack.py:42
Functionsupp_latex_table
Supplementary LaTeX table.
experiments/eval/misc.py:648
Functionsvhn_test_images_file
SVHN test images. :return: filepath :rtype: str
common/paths.py:251
Functionsvhn_test_labels_file
SVHN test labels. :return: filepath :rtype: str
common/paths.py:273
Functionsvhn_train_images_file
SVHN train images. :return: filepath :rtype: str
common/paths.py:240
Functionsvhn_train_labels_file
SVHN train labels. :return: filepath :rtype: str
common/paths.py:262
MethodtearDown
(self)
tests/test_datasets.py:148
MethodtearDown
(self)
tests/test_state.py:260
Functiontensor_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
Functiontest
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
MethodtestAddScalars
(self)
tests/test_tensorboard.py:131
MethodtestAdversarial
(self)
tests/test_datasets.py:96
MethodtestAdversarialEvaluationAttemptsNoValidation
(self)
tests/test_eval.py:1554
MethodtestAdversarialEvaluationAttemptsNoValidationTrivialScores
(self)
tests/test_eval.py:1600
MethodtestAdversarialEvaluationCorrectShapes
(self)
tests/test_eval.py:395
MethodtestAdversarialEvaluationCorrectShapesWithErrors
(self)
tests/test_eval.py:459
MethodtestAdversarialEvaluationNotCorrectClasses
(self)
tests/test_eval.py:543
MethodtestAdversarialEvaluationNotCorrectShape
(self)
tests/test_eval.py:279
MethodtestAdversarialEvaluationNotProbabilities
(self)
tests/test_eval.py:571
MethodtestAdversarialEvaluationROCAUCNoValidation
(self)
tests/test_eval.py:1142
MethodtestAdversarialEvaluationROCAUCNoValidationTrivialScores
(self)
tests/test_eval.py:1206
MethodtestAdversarialEvaluationRobustTestErrorAtNoValidation
(self)
tests/test_eval.py:892
MethodtestAdversarialEvaluationRobustTestErrorAtNoValidationTrivialScores
(self)
tests/test_eval.py:1013
MethodtestAdversarialEvaluationRobustTestErrorNoValidation
(self)
tests/test_eval.py:827
MethodtestAdversarialEvaluationRobustTestErrorNoValidationTrivialScores
(self)
tests/test_eval.py:859
MethodtestAdversarialEvaluationSuccessRateNoValidation
(self)
tests/test_eval.py:752
MethodtestAdversarialEvaluationSuccessRateNoValidationTrivialScores
(self)
tests/test_eval.py:787
MethodtestAdversarialEvaluationTPRAndFPR
(self)
tests/test_eval.py:1278
MethodtestAdversarialEvaluationTPRAndFPRScores
(self)
tests/test_eval.py:1458
MethodtestAdversarialEvaluationTPRAndFPRTrivialScores
(self)
tests/test_eval.py:1366
MethodtestAdversarialEvaluationTestErrorNoValidation
(self)
tests/test_eval.py:626
MethodtestAdversarialEvaluationTestErrorNoValidationTrivialScores
(self)
tests/test_eval.py:685
MethodtestAdversarialIndices
(self)
tests/test_datasets.py:119
MethodtestAdversarialIndicesWithMultipleAttempts
(self)
tests/test_datasets.py:131
MethodtestAdversarialTraining
(self)
tests/test_tensorboard.py:56
MethodtestAdversarialTraining
(self)
tests/test_train.py:142
MethodtestAdversarialTrainingFraction
(self)
tests/test_train.py:177
MethodtestAdversarialWithMultipleAttempts
(self)
tests/test_datasets.py:105
MethodtestAttack
(self)
tests/test_test.py:40
MethodtestAugmentationClipMultipleImages
(self)
tests/test_imgaug.py:70
MethodtestAugmentationClipSingleImage
(self)
tests/test_imgaug.py:53
MethodtestAugmentationTransposeMultipleImages
(self)
tests/test_imgaug.py:32
MethodtestAugmentationTransposeSingleImage
(self)
tests/test_imgaug.py:13
MethodtestBatchAffine
(self)
tests/test_attacks_normal.py:1011
MethodtestBatchCube
(self)
tests/test_attacks_normal.py:954
MethodtestBatchCube2L2
(self)
tests/test_attacks_normal.py:978
MethodtestBatchCube2LInf
(self)
tests/test_attacks_normal.py:966
MethodtestBatchGeometry
(self)
tests/test_attacks_normal.py:989
MethodtestBatchGradientDescentDeterministicNormalized
(self)
tests/test_attacks_normal.py:733
MethodtestBatchGradientDescentDeterministicNormalizedBacktrack
(self)
tests/test_attacks_normal.py:744
← previousnext →601–700 of 916, ranked by callers