Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example based #166

Merged
merged 32 commits into from
Oct 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9c1f39e
gitignore: remove test output files
AntoninPoche Oct 7, 2024
ed7aac0
commons: add utils for example based
AntoninPoche Oct 7, 2024
1b74123
types: add dataset or tensor type for example based
AntoninPoche Oct 7, 2024
09ea4f4
example based: create functions to manipulate datasets
AntoninPoche Oct 7, 2024
c5af51c
example based: introduce the base method
AntoninPoche Oct 7, 2024
690278e
example based: introduce base projection
AntoninPoche Oct 7, 2024
1b73a82
example based: introduce base search method
AntoninPoche Oct 7, 2024
f381fc9
example based: add several projections
AntoninPoche Oct 7, 2024
f11b5f8
example based: add commons for search methods
AntoninPoche Oct 7, 2024
11c73f3
example based: add knn and filter knn search methods
lucashervier Oct 7, 2024
ba3409e
example based: add similar examples
AntoninPoche Oct 7, 2024
be9c35b
example based: add counterfactuals
lucashervier Oct 7, 2024
89b363e
example based: add semifactuals
lucashervier Oct 7, 2024
109fa26
example based: add prototypes
ChafikBak Oct 7, 2024
1278689
example based: add an image ploting function
AntoninPoche Oct 7, 2024
127300e
example based tests: add datasets operations tests
AntoninPoche Oct 7, 2024
2fb379c
example based tests: test knn and filter knn
lucashervier Oct 7, 2024
d43c53a
example based tests: test projections
AntoninPoche Oct 7, 2024
5e11075
example based tests: test similar examples and cole
AntoninPoche Oct 7, 2024
84dec31
example based tests: test counterfactuals and semifactuals
lucashervier Oct 7, 2024
c6e6ad1
example based tests: test prototypes
ChafikBak Oct 7, 2024
9a4a080
example based tests: test torch support
AntoninPoche Oct 7, 2024
33bc623
example based tests: test plotting function
AntoninPoche Oct 7, 2024
4cc1e06
example based tests: add test utils
AntoninPoche Oct 7, 2024
ac3f20b
example based docs: add documentation base
lucashervier Oct 7, 2024
287b38d
example based docs: add documentation for similar examples
lucashervier Oct 7, 2024
854b65a
example based docs: add documentation for counterfactuals
lucashervier Oct 7, 2024
e0c7ab8
example based docs: add documentation for semifactuals
lucashervier Oct 7, 2024
429ebed
example based docs: add documentation for prototypes
ChafikBak Oct 7, 2024
5bd707b
setup: add example based test for torch and ignore pylint too many po…
AntoninPoche Oct 7, 2024
09645e7
concepts tests: move random test to debug notebooks
AntoninPoche Oct 8, 2024
341b9b6
Bump version: 1.3.3 → 1.4.0
AntoninPoche Oct 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
setup: add example based test for torch and ignore pylint too many po…
…sitional arguments
AntoninPoche committed Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 5bd707bdf134226ff2522189ab77e46ae5b1a35a
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ disable =
E1120, # see pylint#3613
E1101, # pylint misses members set dynamically
C3001, # lambda function as variable
R0917, # too-many-positional-arguments - TODO: fix this when breaking retrocompatibility

[pylint.FORMAT]
max-line-length = 100
@@ -26,6 +27,7 @@ min-similarity-lines = 6
ignore-comments = yes
ignore-docstrings = yes
ignore-imports = no
ignore-signatures = yes

[tox:tox]
envlist = py{37,38,39,310}-lint, py{37,38,39,310}-tf{22,25,28,211}, py{38,39,310}-tf{25,28,211}-torch{111,113,200}
@@ -47,7 +49,7 @@ deps =
tf211: tensorflow ~= 2.11.0,<2.16
-rrequirements.txt
commands =
pytest --cov=xplique --ignore=xplique/wrappers/pytorch.py --ignore=tests/wrappers/test_pytorch_wrapper.py --ignore=tests/concepts/test_craft_torch.py {posargs}
pytest --cov=xplique --ignore=xplique/wrappers/pytorch.py --ignore=tests/wrappers/test_pytorch_wrapper.py --ignore=tests/concepts/test_craft_torch.py --ignore=tests/example_based/test_torch.py {posargs}

[testenv:py{38,39,310}-tf{25,28,211}-torch{111,113,200}]
deps =
@@ -61,7 +63,7 @@ deps =
torch200: torch
-rrequirements.txt
commands =
pytest --cov=xplique/wrappers/pytorch tests/wrappers/test_pytorch_wrapper.py tests/concepts/test_craft_torch.py
pytest --cov=xplique/wrappers/pytorch tests/wrappers/test_pytorch_wrapper.py tests/concepts/test_craft_torch.py tests/example_based/test_torch.py

[mypy]
check_untyped_defs = True