-
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.
prepare for v0.2.0, src-based layout
This commit: - Moves to a src-based layout for easier config - ... this also removes one useless import layer by merging __init__.py and distance.py into a single file module distance_explainer.py. - Bumps version to 0.2.0 - Updates setup.cfg a bit (superfluous dependency, new Python version)
- Loading branch information
Showing
7 changed files
with
16 additions
and
27 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
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ authors: | |
|
||
date-released: 2023-10-19 | ||
doi: 10.5281/zenodo.10018768. | ||
version: "0.1.0" | ||
version: "0.2.0" | ||
repository-code: "[email protected]:dianna-ai/distance_explainer" | ||
keywords: | ||
- XAI | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ classifiers = | |
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
description = XAI method to explain distances in embedded spaces | ||
keywords = | ||
XAI | ||
|
@@ -26,29 +27,19 @@ name = distance_explainer | |
project_urls = | ||
Bug Tracker = [email protected]:dianna-ai/distance_explainer/issues | ||
url = [email protected]:dianna-ai/distance_explainer | ||
version = 0.1.0 | ||
version = 0.2.0 | ||
|
||
[options] | ||
zip_safe = False | ||
python_requires = >=3.8 | ||
include_package_data = True | ||
packages = find: | ||
install_requires = | ||
dianna>=1.2 | ||
numpy | ||
pytest | ||
setuptools | ||
tqdm | ||
dianna | ||
scikit-learn | ||
pyyaml | ||
dataclass_wizard | ||
|
||
[options.data_files] | ||
# This section requires setuptools>=40.6.0 | ||
# It remains empty for now | ||
# Check if MANIFEST.in works for your purposes | ||
|
||
[options.extras_require] | ||
dev = | ||
build | ||
|
@@ -65,6 +56,3 @@ dev = | |
publishing = | ||
twine | ||
wheel | ||
|
||
[options.packages.find] | ||
include = distance_explainer, distance_explainer.* |
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,8 +1,17 @@ | ||
"""Documentation about distance_explainer.""" | ||
|
||
import numpy as np | ||
import dianna.utils | ||
from dianna.utils.maskers import generate_masks_for_images | ||
from sklearn.metrics import pairwise_distances | ||
from tqdm import tqdm | ||
import logging | ||
|
||
logging.getLogger(__name__).addHandler(logging.NullHandler()) | ||
|
||
__author__ = "Christiaan Meijer" | ||
__email__ = "[email protected]" | ||
__version__ = "0.2.0" | ||
|
||
|
||
class DistanceExplainer: | ||
|
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