-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from dilyabareeva/import_strategy
Import strategy
- Loading branch information
Showing
94 changed files
with
302 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[run] | ||
source = src | ||
source = quanda | ||
omit = | ||
/tests/* | ||
src/utils/explanations.py | ||
src/utils/transforms.py | ||
src/utils/datasets/transformed/sample.py | ||
src/utils/cache.py | ||
src/utils/datasets/activation_dataset.py | ||
src/utils/datasets/indexed_subset.py | ||
src/explainers/functional.py | ||
quanda/utils/explanations.py | ||
quanda/utils/transforms.py | ||
quanda/utils/datasets/transformed/sample.py | ||
quanda/utils/cache.py | ||
quanda/utils/datasets/activation_dataset.py | ||
quanda/utils/datasets/indexed_subset.py | ||
quanda/explainers/functional.py | ||
[report] | ||
ignore_errors = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from quanda import explainers, metrics, toy_benchmarks, utils | ||
|
||
__all__ = ["explainers", "metrics", "toy_benchmarks", "utils"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from quanda.explainers import utils, wrappers | ||
from quanda.explainers.aggregators import ( | ||
AbsSumAggregator, | ||
BaseAggregator, | ||
SumAggregator, | ||
aggr_types, | ||
) | ||
from quanda.explainers.base import BaseExplainer | ||
from quanda.explainers.functional import ExplainFunc, ExplainFuncMini | ||
from quanda.explainers.random import RandomExplainer | ||
|
||
__all__ = [ | ||
"BaseExplainer", | ||
"RandomExplainer", | ||
"ExplainFunc", | ||
"ExplainFuncMini", | ||
"utils", | ||
"wrappers", | ||
"BaseAggregator", | ||
"SumAggregator", | ||
"AbsSumAggregator", | ||
"aggr_types", | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from quanda.explainers.wrappers.captum_influence import ( | ||
CaptumArnoldi, | ||
CaptumInfluence, | ||
CaptumSimilarity, | ||
CaptumTracInCP, | ||
captum_arnoldi_explain, | ||
captum_arnoldi_self_influence, | ||
captum_similarity_explain, | ||
captum_similarity_self_influence, | ||
captum_tracincp_explain, | ||
captum_tracincp_self_influence, | ||
) | ||
|
||
__all__ = [ | ||
"CaptumInfluence", | ||
"CaptumSimilarity", | ||
"captum_similarity_explain", | ||
"captum_similarity_self_influence", | ||
"CaptumArnoldi", | ||
"captum_arnoldi_explain", | ||
"captum_arnoldi_self_influence", | ||
"CaptumTracInCP", | ||
"captum_tracincp_explain", | ||
"captum_tracincp_self_influence", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from quanda.metrics import localization, randomization, unnamed | ||
from quanda.metrics.aggr_strategies import ( | ||
GlobalAggrStrategy, | ||
GlobalSelfInfluenceStrategy, | ||
) | ||
from quanda.metrics.base import GlobalMetric, Metric | ||
|
||
__all__ = [ | ||
"Metric", | ||
"GlobalMetric", | ||
"GlobalAggrStrategy", | ||
"GlobalSelfInfluenceStrategy", | ||
"randomization", | ||
"localization", | ||
"unnamed", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from quanda.metrics.localization.class_detection import ClassDetectionMetric | ||
from quanda.metrics.localization.mislabeling_detection import ( | ||
MislabelingDetectionMetric, | ||
) | ||
from quanda.metrics.localization.subclass_detection import ( | ||
SubclassDetectionMetric, | ||
) | ||
|
||
__all__ = ["ClassDetectionMetric", "SubclassDetectionMetric", "MislabelingDetectionMetric"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...etrics/localization/subclass_detection.py → ...etrics/localization/subclass_detection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from quanda.metrics.randomization.model_randomization import ( | ||
ModelRandomizationMetric, | ||
) | ||
|
||
__all__ = ["ModelRandomizationMetric"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from quanda.metrics.unnamed.dataset_cleaning import DatasetCleaningMetric | ||
from quanda.metrics.unnamed.top_k_overlap import TopKOverlapMetric | ||
|
||
__all__ = ["DatasetCleaningMetric", "TopKOverlapMetric"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/metrics/unnamed/top_k_overlap.py → quanda/metrics/unnamed/top_k_overlap.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from quanda.toy_benchmarks import localization, randomization, unnamed | ||
from quanda.toy_benchmarks.base import ToyBenchmark | ||
|
||
__all__ = ["ToyBenchmark", "randomization", "localization", "unnamed"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from quanda.toy_benchmarks.localization.class_detection import ClassDetection | ||
from quanda.toy_benchmarks.localization.mislabeling_detection import ( | ||
MislabelingDetection, | ||
) | ||
from quanda.toy_benchmarks.localization.subclass_detection import ( | ||
SubclassDetection, | ||
) | ||
|
||
__all__ = ["ClassDetection", "SubclassDetection", "MislabelingDetection"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from quanda.toy_benchmarks.randomization.model_randomization import ( | ||
ModelRandomization, | ||
) | ||
|
||
__all__ = ["ModelRandomization"] |
Oops, something went wrong.