Coverage report: 83%

Files Functions Classes

coverage.py v7.13.5, created at 2026-04-14 07:50 +0000

File function   statements missing excluded   coverage
adaro_rl / __init__.py __getattr__   4 2 0   50%
adaro_rl / __init__.py (no function)   4 0 0   100%
adaro_rl / attacks / __init__.py (no function)   3 0 0   100%
adaro_rl / attacks / base_attack.py BaseAttack.__init__   37 6 0   84%
adaro_rl / attacks / base_attack.py BaseAttack._scale_perturbation   24 1 0   96%
adaro_rl / attacks / base_attack.py BaseAttack.generate_perturbation   1 1 0   0%
adaro_rl / attacks / base_attack.py BaseAttack._apply_proportional_perturbation_mask   9 1 0   89%
adaro_rl / attacks / base_attack.py BaseAttack.apply_perturbation_on_obs   3 0 0   100%
adaro_rl / attacks / base_attack.py BaseAttack.generate_adv_obs   6 0 0   100%
adaro_rl / attacks / base_attack.py (no function)   9 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodBaseClass.__init__   3 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodBaseClass._get_perturbation_map   1 1 0   0%
adaro_rl / attacks / fgm.py FastGradientMethodBaseClass.generate_perturbation   9 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodDiscreteAction.__init__   3 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodDiscreteAction._generate_perturbation_map   6 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodDiscreteAction._get_perturbation_map   15 3 0   80%
adaro_rl / attacks / fgm.py FastGradientMethodContinuousAction.__init__   3 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodContinuousAction._generate_perturbation_map   6 1 0   83%
adaro_rl / attacks / fgm.py FastGradientMethodContinuousAction._get_perturbation_map   12 3 0   75%
adaro_rl / attacks / fgm.py FastGradientMethodVCritic.__init__   3 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodVCritic._generate_perturbation_map   4 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodVCritic._get_perturbation_map   15 6 0   60%
adaro_rl / attacks / fgm.py FastGradientMethodQCritic.__init__   4 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodQCritic._generate_perturbation_map   4 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodQCritic._get_perturbation_map   17 6 0   65%
adaro_rl / attacks / fgm.py FastGradientMethodQActorCritic.__init__   4 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodQActorCritic._generate_perturbation_map   4 0 0   100%
adaro_rl / attacks / fgm.py FastGradientMethodQActorCritic._get_perturbation_map   17 6 0   65%
adaro_rl / attacks / fgm.py (no function)   29 0 0   100%
adaro_rl / attacks / fgsm.py FastGradientSignMethodDiscreteAction.__init__   2 0 0   100%
adaro_rl / attacks / fgsm.py FastGradientSignMethodContinuousAction.__init__   2 0 0   100%
adaro_rl / attacks / fgsm.py FastGradientSignMethodVCritic.__init__   2 0 0   100%
adaro_rl / attacks / fgsm.py FastGradientSignMethodQCritic.__init__   2 0 0   100%
adaro_rl / attacks / fgsm.py FastGradientSignMethodQActorCritic.__init__   2 0 0   100%
adaro_rl / attacks / fgsm.py (no function)   14 0 0   100%
adaro_rl / attacks / random.py RandomUniformAttack.__init__   1 0 0   100%
adaro_rl / attacks / random.py RandomUniformAttack.generate_perturbation   8 0 0   100%
adaro_rl / attacks / random.py RandomSignAttack.__init__   1 0 0   100%
adaro_rl / attacks / random.py RandomSignAttack.generate_perturbation   8 0 0   100%
adaro_rl / attacks / random.py RandomNormalAttack.__init__   1 0 0   100%
adaro_rl / attacks / random.py RandomNormalAttack.generate_perturbation   8 0 0   100%
adaro_rl / attacks / random.py _truncated_normal   3 0 0   100%
adaro_rl / attacks / random.py (no function)   14 0 0   100%
adaro_rl / attacks / registry.py make_attack   10 2 0   80%
adaro_rl / attacks / registry.py EnsembleAttackWrapper.__init__   2 0 0   100%
adaro_rl / attacks / registry.py EnsembleAttackWrapper.generate_adv_obs   2 0 0   100%
adaro_rl / attacks / registry.py EnsembleAttackWrapper.generate_perturbation   2 2 0   0%
adaro_rl / attacks / registry.py (no function)   36 0 0   100%
adaro_rl / pipelines / __init__.py (no function)   5 0 0   100%
adaro_rl / pipelines / adversarial_train.py adversarial_train   45 11 0   76%
adaro_rl / pipelines / adversarial_train.py adversarial_train.Placeholder.__init__   2 0 0   100%
adaro_rl / pipelines / adversarial_train.py adversarial_train.placeholder_fct   1 0 0   100%
adaro_rl / pipelines / adversarial_train.py adversarial_train.make_adv_trained_agent_fct   1 0 0   100%
adaro_rl / pipelines / adversarial_train.py adversarial_train.AdversaryPlaceholder.__init__   2 2 0   0%
adaro_rl / pipelines / adversarial_train.py adversarial_train.make_attack_fct   1 0 0   100%
adaro_rl / pipelines / adversarial_train.py (no function)   7 0 0   100%
adaro_rl / pipelines / main.py main   77 11 0   86%
adaro_rl / pipelines / main.py (no function)   20 1 0   95%
adaro_rl / pipelines / online_attack.py online_attack   63 11 0   83%
adaro_rl / pipelines / online_attack.py online_attack.Placeholder.__init__   2 0 0   100%
adaro_rl / pipelines / online_attack.py online_attack.placeholder_fct   1 0 0   100%
adaro_rl / pipelines / online_attack.py online_attack.make_agent_fct   1 0 0   100%
adaro_rl / pipelines / online_attack.py online_attack.AdversaryPlaceholder.__init__   2 2 0   0%
adaro_rl / pipelines / online_attack.py online_attack.make_attack_fct   1 0 0   100%
adaro_rl / pipelines / online_attack.py online_attack.save   13 2 0   85%
adaro_rl / pipelines / online_attack.py (no function)   9 0 0   100%
adaro_rl / pipelines / test.py test   31 3 0   90%
adaro_rl / pipelines / test.py (no function)   4 0 0   100%
adaro_rl / pipelines / train.py train   14 2 0   86%
adaro_rl / pipelines / train.py (no function)   2 0 0   100%
adaro_rl / pipelines / utils.py normalize_lists   5 1 0   80%
adaro_rl / pipelines / utils.py make_attack_list   10 1 0   90%
adaro_rl / pipelines / utils.py (no function)   3 0 0   100%
adaro_rl / viz / __init__.py (no function)   2 0 0   100%
adaro_rl / viz / robustness_matrix.py robustness_matrix   43 6 0   86%
adaro_rl / viz / robustness_matrix.py robustness_matrix.make_rectangle   2 2 0   0%
adaro_rl / viz / robustness_matrix.py (no function)   7 0 0   100%
adaro_rl / wrappers / __init__.py (no function)   3 0 0   100%
adaro_rl / wrappers / obs_attack_adversary_env.py ObsAttackAdversaryEnv.__init__   9 9 0   0%
adaro_rl / wrappers / obs_attack_adversary_env.py ObsAttackAdversaryEnv.reset   3 3 0   0%
adaro_rl / wrappers / obs_attack_adversary_env.py ObsAttackAdversaryEnv.step_async   9 9 0   0%
adaro_rl / wrappers / obs_attack_adversary_env.py ObsAttackAdversaryEnv.step_wait   4 4 0   0%
adaro_rl / wrappers / obs_attack_adversary_env.py ObsAttackAdversaryEnv.render   1 1 0   0%
adaro_rl / wrappers / obs_attack_adversary_env.py (no function)   10 0 0   100%
adaro_rl / wrappers / obs_attack_agent_env.py ObsAttackAgentEnv.__init__   8 0 0   100%
adaro_rl / wrappers / obs_attack_agent_env.py ObsAttackAgentEnv.reset   4 0 0   100%
adaro_rl / wrappers / obs_attack_agent_env.py ObsAttackAgentEnv.step_async   3 1 0   67%
adaro_rl / wrappers / obs_attack_agent_env.py ObsAttackAgentEnv.step_wait   6 1 0   83%
adaro_rl / wrappers / obs_attack_agent_env.py ObsAttackAgentEnv.render   1 1 0   0%
adaro_rl / wrappers / obs_attack_agent_env.py (no function)   8 0 0   100%
adaro_rl / zoo / Enduro-v5 / __init__.py (no function)   7 0 0   100%
adaro_rl / zoo / Enduro-v5 / agent.py linear_schedule   2 0 0   100%
adaro_rl / zoo / Enduro-v5 / agent.py linear_schedule.func   1 0 0   100%
adaro_rl / zoo / Enduro-v5 / agent.py (no function)   14 0 0   100%
adaro_rl / zoo / Enduro-v5 / environment.py EnvWrapper.__init__   3 3 0   0%
adaro_rl / zoo / Enduro-v5 / environment.py (no function)   15 0 0   100%
adaro_rl / zoo / HalfCheetah-v5 / __init__.py (no function)   7 0 0   100%
adaro_rl / zoo / HalfCheetah-v5 / agent.py linear_schedule   2 0 0   100%
adaro_rl / zoo / HalfCheetah-v5 / agent.py linear_schedule.func   1 1 0   0%
adaro_rl / zoo / HalfCheetah-v5 / agent.py (no function)   22 0 0   100%
adaro_rl / zoo / HalfCheetah-v5 / environment.py EnvWrapper.__init__   3 3 0   0%
adaro_rl / zoo / HalfCheetah-v5 / environment.py (no function)   10 0 0   100%
adaro_rl / zoo / Template / __init__.py (no function)   5 0 0   100%
adaro_rl / zoo / Template / agent.py (no function)   9 0 0   100%
adaro_rl / zoo / Template / environment.py EnvWrapper.__init__   3 3 0   0%
adaro_rl / zoo / Template / environment.py (no function)   9 0 0   100%
adaro_rl / zoo / __init__.py (no function)   5 0 0   100%
adaro_rl / zoo / agent.py make_agent   13 2 0   85%
adaro_rl / zoo / agent.py Agent.__init__   20 1 0   95%
adaro_rl / zoo / agent.py Agent.load   6 0 0   100%
adaro_rl / zoo / agent.py Agent.change_output_dir   2 2 0   0%
adaro_rl / zoo / agent.py Agent.save   1 0 0   100%
adaro_rl / zoo / agent.py Agent.to   5 5 0   0%
adaro_rl / zoo / agent.py Agent.learn   14 1 0   93%
adaro_rl / zoo / agent.py Agent.preprocess_obs   17 9 0   47%
adaro_rl / zoo / agent.py Agent.predict   2 0 0   100%
adaro_rl / zoo / agent.py Agent.act   7 2 0   71%
adaro_rl / zoo / agent.py Agent.probs   14 6 0   57%
adaro_rl / zoo / agent.py Agent.log_prob   9 9 0   0%
adaro_rl / zoo / agent.py Agent.v_value   11 4 0   64%
adaro_rl / zoo / agent.py Agent.q_value   11 3 0   73%
adaro_rl / zoo / agent.py EnsembleAgent.__init__   13 0 0   100%
adaro_rl / zoo / agent.py EnsembleAgent.load   3 0 0   100%
adaro_rl / zoo / agent.py EnsembleAgent.to   2 2 0   0%
adaro_rl / zoo / agent.py EnsembleAgent.eval   2 0 0   100%
adaro_rl / zoo / agent.py EnsembleAgent.train   2 2 0   0%
adaro_rl / zoo / agent.py EnsembleAgent.predict   22 6 0   73%
adaro_rl / zoo / agent.py _SaveOnBestRewardCallback.__init__   4 0 0   100%
adaro_rl / zoo / agent.py _SaveOnBestRewardCallback._on_step   10 8 0   20%
adaro_rl / zoo / agent.py _transpose_image   3 1 0   67%
adaro_rl / zoo / agent.py _maybe_transpose   6 0 0   100%
adaro_rl / zoo / agent.py (no function)   42 0 0   100%
adaro_rl / zoo / environment.py make_env   12 0 0   100%
adaro_rl / zoo / environment.py make_env.make_env   2 0 0   100%
adaro_rl / zoo / environment.py make_env.make_env._init   23 23 0   0%
adaro_rl / zoo / environment.py (no function)   7 0 0   100%
adaro_rl / zoo / eval.py custom_evaluate_policy   49 9 0   82%
adaro_rl / zoo / eval.py (no function)   6 0 0   100%
adaro_rl / zoo / main.py download_model   3 0 0   100%
adaro_rl / zoo / main.py main   5 5 0   0%
adaro_rl / zoo / main.py (no function)   6 1 0   83%
adaro_rl / zoo / registry.py import_configs   9 1 0   89%
adaro_rl / zoo / registry.py (no function)   4 0 0   100%
tests / test_pipelines.py test   76 1 0   99%
tests / test_pipelines.py (no function)   10 1 0   90%
Total     1395 239 0   83%

No items found using the specified filter.