robustML/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
robustML/advertrain/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
robustML/advertrain/constants.py |
(no function) |
6 |
0 |
0 |
100% |
robustML/advertrain/dependencies/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
robustML/advertrain/dependencies/autoattack.py |
L0_norm |
1 |
0 |
0 |
100% |
robustML/advertrain/dependencies/autoattack.py |
L1_norm |
4 |
1 |
0 |
75% |
robustML/advertrain/dependencies/autoattack.py |
L2_norm |
4 |
1 |
0 |
75% |
robustML/advertrain/dependencies/autoattack.py |
L1_projection |
37 |
37 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.__init__ |
18 |
0 |
0 |
100% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.init_hyperparam |
11 |
11 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.check_oscillation |
4 |
4 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.check_shape |
1 |
1 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.normalize |
12 |
12 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.lp_norm |
3 |
3 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.dlr_loss |
4 |
4 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.attack_single_run |
163 |
163 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.perturb |
58 |
58 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
APGDAttack.decr_eps_pgd |
19 |
19 |
0 |
0% |
robustML/advertrain/dependencies/autoattack.py |
(no function) |
21 |
0 |
0 |
100% |
robustML/advertrain/dependencies/cleverhans/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
robustML/advertrain/dependencies/cleverhans/fast_gradient_method.py |
fast_gradient_method |
28 |
10 |
0 |
64% |
robustML/advertrain/dependencies/cleverhans/fast_gradient_method.py |
(no function) |
5 |
0 |
0 |
100% |
robustML/advertrain/dependencies/cleverhans/projected_gradient_descent.py |
projected_gradient_descent |
23 |
2 |
0 |
91% |
robustML/advertrain/dependencies/cleverhans/projected_gradient_descent.py |
(no function) |
6 |
0 |
0 |
100% |
robustML/advertrain/dependencies/cleverhans/utils.py |
clip_eta |
11 |
0 |
0 |
100% |
robustML/advertrain/dependencies/cleverhans/utils.py |
optimize_linear |
28 |
14 |
0 |
50% |
robustML/advertrain/dependencies/cleverhans/utils.py |
(no function) |
4 |
0 |
0 |
100% |
robustML/advertrain/dependencies/dropblock.py |
drop_block_2d |
22 |
6 |
0 |
73% |
robustML/advertrain/dependencies/dropblock.py |
drop_block_fast_2d |
19 |
6 |
0 |
68% |
robustML/advertrain/dependencies/dropblock.py |
DropBlock2d.__init__ |
8 |
0 |
0 |
100% |
robustML/advertrain/dependencies/dropblock.py |
DropBlock2d.forward |
5 |
1 |
0 |
80% |
robustML/advertrain/dependencies/dropblock.py |
(no function) |
8 |
0 |
0 |
100% |
robustML/advertrain/dependencies/fire.py |
entropy_loss |
2 |
0 |
0 |
100% |
robustML/advertrain/dependencies/fire.py |
fire_loss |
55 |
21 |
0 |
62% |
robustML/advertrain/dependencies/fire.py |
noise_loss |
6 |
0 |
0 |
100% |
robustML/advertrain/dependencies/fire.py |
(no function) |
7 |
0 |
0 |
100% |
robustML/advertrain/dependencies/trades.py |
squared_l2_norm |
2 |
0 |
0 |
100% |
robustML/advertrain/dependencies/trades.py |
l2_norm |
1 |
0 |
0 |
100% |
robustML/advertrain/dependencies/trades.py |
trades_loss |
45 |
23 |
0 |
49% |
robustML/advertrain/dependencies/trades.py |
(no function) |
8 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics.__init__ |
1 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics.reset_metrics |
2 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics.update |
11 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics._precision |
1 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics._recall |
1 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics._f1_score |
3 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics.get_metrics |
6 |
0 |
0 |
100% |
robustML/advertrain/metrics.py |
Metrics.save_metrics |
3 |
3 |
0 |
0% |
robustML/advertrain/metrics.py |
Metrics.load_metrics |
3 |
3 |
0 |
0% |
robustML/advertrain/metrics.py |
Metrics.display |
2 |
2 |
0 |
0% |
robustML/advertrain/metrics.py |
Metrics.display_table |
2 |
2 |
0 |
0% |
robustML/advertrain/metrics.py |
(no function) |
18 |
0 |
0 |
100% |
robustML/advertrain/models.py |
Normalize.__init__ |
3 |
0 |
0 |
100% |
robustML/advertrain/models.py |
Normalize.forward |
1 |
0 |
0 |
100% |
robustML/advertrain/models.py |
ConvNet.__init__ |
13 |
0 |
0 |
100% |
robustML/advertrain/models.py |
ConvNet.forward |
15 |
0 |
0 |
100% |
robustML/advertrain/models.py |
ConvNetDropblock.__init__ |
17 |
17 |
0 |
0% |
robustML/advertrain/models.py |
ConvNetDropblock.forward |
18 |
18 |
0 |
0% |
robustML/advertrain/models.py |
ResNet.__init__ |
33 |
0 |
0 |
100% |
robustML/advertrain/models.py |
ResNet.forward |
20 |
20 |
0 |
0% |
robustML/advertrain/models.py |
ResNetDropblock.__init__ |
35 |
35 |
0 |
0% |
robustML/advertrain/models.py |
ResNetDropblock.forward |
24 |
24 |
0 |
0% |
robustML/advertrain/models.py |
(no function) |
19 |
0 |
0 |
100% |
robustML/advertrain/training/__init__.py |
(no function) |
0 |
0 |
0 |
100% |
robustML/advertrain/training/adversarial_training.py |
AdversarialTraining.__init__ |
2 |
0 |
0 |
100% |
robustML/advertrain/training/adversarial_training.py |
AdversarialTraining.preprocess_batch |
3 |
3 |
0 |
0% |
robustML/advertrain/training/adversarial_training.py |
(no function) |
11 |
0 |
0 |
100% |
robustML/advertrain/training/autoattack_training.py |
AutoAttackTraining.__init__ |
4 |
0 |
0 |
100% |
robustML/advertrain/training/autoattack_training.py |
AutoAttackTraining.preprocess_batch |
2 |
2 |
0 |
0% |
robustML/advertrain/training/autoattack_training.py |
(no function) |
7 |
0 |
0 |
100% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining.__init__ |
6 |
0 |
0 |
100% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining.preprocess_batch |
1 |
1 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining.train_batch |
10 |
10 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining.val_batch |
7 |
7 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining.fit |
19 |
19 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining._to_device |
1 |
1 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining._process_epoch |
9 |
9 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
ClassicalTraining._update_metrics |
5 |
5 |
0 |
0% |
robustML/advertrain/training/classical_training.py |
(no function) |
18 |
0 |
0 |
100% |
robustML/advertrain/training/fire_training.py |
FIRETraining.__init__ |
5 |
0 |
0 |
100% |
robustML/advertrain/training/fire_training.py |
FIRETraining.train_batch |
11 |
11 |
0 |
0% |
robustML/advertrain/training/fire_training.py |
FIRETraining.val_batch |
7 |
0 |
0 |
100% |
robustML/advertrain/training/fire_training.py |
(no function) |
7 |
0 |
0 |
100% |
robustML/advertrain/transforms.py |
DataTransformations.__init__ |
1 |
0 |
0 |
100% |
robustML/advertrain/transforms.py |
DataTransformations.get_train_transforms |
1 |
0 |
0 |
100% |
robustML/advertrain/transforms.py |
DataTransformations.get_test_transforms |
1 |
0 |
0 |
100% |
robustML/advertrain/transforms.py |
(no function) |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_autoattack.py |
sample_tensor |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_autoattack.py |
test_L1_norm |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_autoattack.py |
test_L2_norm |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_autoattack.py |
test_L0_norm |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_autoattack.py |
MockModel.forward |
1 |
1 |
0 |
0% |
tests/tests_advertrain/test_dependencies/test_autoattack.py |
(no function) |
11 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_fast_gradient_method.py |
mock_model_fn |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_fast_gradient_method.py |
test_adversarial_example_generation |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_fast_gradient_method.py |
test_error_on_negative_eps |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_fast_gradient_method.py |
(no function) |
7 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_projected_gradient_descent.py |
mock_model_fn |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_projected_gradient_descent.py |
test_adversarial_example_generation |
7 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_projected_gradient_descent.py |
test_error_on_invalid_eps |
7 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_projected_gradient_descent.py |
test_error_on_invalid_eps_iter |
7 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_projected_gradient_descent.py |
test_error_on_invalid_clip_values |
9 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_projected_gradient_descent.py |
(no function) |
10 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
test_clip_eta_inf_norm |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
test_clip_eta_l2_norm |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
test_clip_eta_error_on_invalid_norm |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
test_optimize_linear_inf_norm |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
test_optimize_linear_l2_norm |
7 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
test_optimize_linear_error_on_invalid_norm |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_cleverhans/test_utils.py |
(no function) |
10 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_dropblock.py |
sample_input_tensor |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_dropblock.py |
test_drop_block_2d |
4 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_dropblock.py |
test_drop_block_fast_2d |
4 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_dropblock.py |
test_DropBlock2d_initialization |
4 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_dropblock.py |
test_DropBlock2d_forward |
10 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_dropblock.py |
(no function) |
10 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
MockModel.__init__ |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
MockModel.forward |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
mock_model |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
test_entropy_loss |
3 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
test_fire_loss |
9 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
test_noise_loss |
4 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_fire.py |
(no function) |
12 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
MockModel.__init__ |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
MockModel.forward |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
mock_model |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
test_squared_l2_norm |
3 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
test_l2_norm |
3 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
test_trades_loss |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_dependencies/test_trades.py |
(no function) |
12 |
0 |
0 |
100% |
tests/tests_advertrain/test_metrics.py |
sample_data |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_metrics.py |
test_initial_state |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_metrics.py |
test_metrics_update |
8 |
0 |
0 |
100% |
tests/tests_advertrain/test_metrics.py |
test_get_metrics |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_metrics.py |
(no function) |
10 |
0 |
0 |
100% |
tests/tests_advertrain/test_models.py |
test_ConvNet_initialization |
11 |
0 |
0 |
100% |
tests/tests_advertrain/test_models.py |
test_ConvNet_forward_pass |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_models.py |
test_ResNet_initialization |
33 |
0 |
0 |
100% |
tests/tests_advertrain/test_models.py |
(no function) |
7 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
SimpleModel.__init__ |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
SimpleModel.forward |
1 |
1 |
0 |
0% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
mock_model |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
mock_optimizer |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
mock_loss_func |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
mock_device |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
mock_epsilon |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
test_initialization |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_adversarial_training.py |
(no function) |
19 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
SimpleModel.__init__ |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
SimpleModel.forward |
1 |
1 |
0 |
0% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
simple_model |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
simple_optimizer |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
simple_loss_func |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
simple_device |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
test_auto_attack_training_initialization |
4 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_autoattack_training.py |
(no function) |
18 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
SimpleModel.__init__ |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
SimpleModel.forward |
1 |
1 |
0 |
0% |
tests/tests_advertrain/test_training/test_classical_training.py |
mock_model |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
mock_optimizer |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
mock_loss_func |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
mock_device |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
mock_dataloader |
4 |
4 |
0 |
0% |
tests/tests_advertrain/test_training/test_classical_training.py |
test_initialization |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_classical_training.py |
(no function) |
21 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
MockModel.__init__ |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
MockModel.forward |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
mock_model |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
mock_optimizer |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
mock_device |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
fire_training |
1 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
test_val_batch |
5 |
0 |
0 |
100% |
tests/tests_advertrain/test_training/test_fire_training.py |
(no function) |
18 |
0 |
0 |
100% |
tests/tests_advertrain/test_transforms.py |
test_initialization |
2 |
0 |
0 |
100% |
tests/tests_advertrain/test_transforms.py |
test_get_train_transforms |
13 |
0 |
0 |
100% |
tests/tests_advertrain/test_transforms.py |
test_get_test_transforms |
6 |
0 |
0 |
100% |
tests/tests_advertrain/test_transforms.py |
(no function) |
5 |
0 |
0 |
100% |