Adding new features
This commit is contained in:
parent
e2d47af072
commit
a00e73d4f0
6 changed files with 103 additions and 24 deletions
|
|
@ -119,15 +119,20 @@ def set_cfg(explaining_cfg):
|
|||
explaining_cfg.threshold_config.relu_and_normalize = True
|
||||
|
||||
# Select device: 'cpu', 'cuda', 'auto'
|
||||
explaining_cfg.accelerator = "auto"
|
||||
|
||||
# which objectives metrics to computes, either all or one in particular if implemented
|
||||
explaining_cfg.metrics = CN()
|
||||
explaining_cfg.metrics.type = "all"
|
||||
explaining_cfg.metrics.name = "all"
|
||||
|
||||
# Whether or not recomputing metrics if they already exist
|
||||
explaining_cfg.metrics.force = False
|
||||
|
||||
explaining_cfg.attack = CN()
|
||||
explaining_cfg.attack.name = 'all'
|
||||
|
||||
|
||||
explaining_cfg.accelerator = "auto"
|
||||
|
||||
|
||||
def assert_cfg(explaining_cfg):
|
||||
r"""Checks config values, do necessary post processing to the configs"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue