Skip to content

Commit

Permalink
Add version entries to default metadata dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise committed Sep 17, 2021
1 parent 901ce90 commit a4e75b7
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions alibi/api/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
DEFAULT_META_ANCHOR = {"name": None,
"type": ["blackbox"],
"explanations": ["local"],
"params": {}}
"params": {},
"version": None}
"""
Default anchor metadata.
"""
Expand All @@ -33,7 +34,8 @@
DEFAULT_META_CEM = {"name": None,
"type": ["blackbox", "tensorflow", "keras"],
"explanations": ["local"],
"params": {}}
"params": {},
"version": None}
"""
Default CEM metadata.
"""
Expand All @@ -54,7 +56,8 @@
DEFAULT_META_CF = {"name": None,
"type": ["blackbox", "tensorflow", "keras"],
"explanations": ["local"],
"params": {}}
"params": {},
"version": None}
"""
Default counterfactual metadata.
"""
Expand All @@ -72,7 +75,8 @@
DEFAULT_META_CFP = {"name": None,
"type": ["blackbox", "tensorflow", "keras"],
"explanations": ["local"],
"params": {}}
"params": {},
"version": None}
"""
Default counterfactual prototype metadata.
"""
Expand Down Expand Up @@ -108,7 +112,8 @@
"type": ["blackbox"],
"task": None,
"explanations": ["local", "global"],
"params": dict.fromkeys(KERNEL_SHAP_PARAMS)
"params": dict.fromkeys(KERNEL_SHAP_PARAMS),
"version": None
} # type: dict
"""
Default KernelShap metadata.
Expand All @@ -135,7 +140,8 @@
"name": None,
"type": ["blackbox"],
"explanations": ["global"],
"params": {}
"params": {},
"version": None
} # type: dict
"""
Default ALE metadata.
Expand Down Expand Up @@ -174,7 +180,8 @@
"type": ["whitebox"],
"task": None, # updates with 'classification' or 'regression'
"explanations": ["local", "global"],
"params": dict.fromkeys(TREE_SHAP_PARAMS)
"params": dict.fromkeys(TREE_SHAP_PARAMS),
"version": None
} # type: dict
"""
Default TreeShap metadata.
Expand Down Expand Up @@ -205,7 +212,8 @@
"name": None,
"type": ["whitebox"],
"explanations": ["local"],
"params": {}
"params": {},
"version": None
} # type: dict
"""
Default IntegratedGradients metadata.
Expand All @@ -223,11 +231,11 @@
Default IntegratedGradients data.
"""


DEFAULT_META_CFRL = {"name": None,
"type": ["blackbox"],
"explanations": ["local"],
"params": {}} # type: dict
"params": {},
"version": None} # type: dict
"""
Default CounterfactualRL metadata.
"""
Expand Down

0 comments on commit a4e75b7

Please sign in to comment.