Skip to content

Commit

Permalink
fixes on v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
annahedstroem committed Aug 9, 2023
1 parent 5fcce79 commit 823a592
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ _Quantus is currently under active development so carefully note the Quantus rel

## News and Highlights! :rocket:

- Released a new version v0.4.1 [here](https://github.com/understandable-machine-intelligence-lab/Quantus/releases)!
- Released a new version [v0.4.2](https://github.com/understandable-machine-intelligence-lab/Quantus/releases)
- Accepted to Journal of Machine Learning Research (MLOSS), read the [paper](https://jmlr.org/papers/v24/22-0142.html)
- Offers more than **30+ metrics in 6 categories** for XAI evaluation
- Supports different data types (image, time-series, tabular, NLP next up!) and models (PyTorch, TensorFlow)
- Extended built-in support for explanation methods ([captum](https://captum.ai/) and [tf-explain](https://tf-explain.readthedocs.io/en/latest/))
- Extended built-in support for explanation methods ([captum](https://captum.ai/), [tf-explain](https://tf-explain.readthedocs.io/en/latest/) and [zennit](https://github.com/chr5tphr/zennit))
- New optimisations to help speed up computation, see API reference [here](https://quantus.readthedocs.io/en/latest/docs_api/quantus.metrics.base_batched.html)

See [here](https://github.com/understandable-machine-intelligence-lab/Quantus/releases) for the latest release(s).
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "quantus"

# Versions should comply with PEP 440:
# https://www.python.org/dev/peps/pep-0440/
version = "0.4.1"
version = "0.4.2"
description = "A metrics toolkit to evaluate neural network explanations."
readme = "README.md"
requires-python = ">=3.7"
Expand Down Expand Up @@ -34,7 +34,8 @@ dependencies = [
"scikit-learn>=0.24.2",
"scipy>=1.7.3",
"tqdm>=4.62.3",
"matplotlib>=3.3.4"
"matplotlib>=3.3.4",
"toml>=0.6.0"
]

[project.urls]
Expand Down Expand Up @@ -86,7 +87,7 @@ torch = [
tensorflow = [
"tensorflow>=2.5.0; python_version == '3.7'",
"tensorflow>=2.12.0; sys_platform != 'darwin' and python_version > '3.7'",
"tensorflow_macos>=2.12.0; sys_platform == 'darwin' and python_version > '3.7'",
"tensorflow_macos>=2.9.0; sys_platform == 'darwin' and python_version > '3.7'",
]
captum = [
"quantus[torch]",
Expand Down
11 changes: 11 additions & 0 deletions quantus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# You should have received a copy of the GNU Lesser General Public License along with Quantus. If not, see <https://www.gnu.org/licenses/>.
# Quantus project URL: <https://github.com/understandable-machine-intelligence-lab/Quantus>.

# Set the correct version.
import toml
package = toml.load("pyproject.toml")
__version__ = package["project"]["version"]

# Expose quantus.evaluate to the user.
from quantus.evaluation import evaluate

Expand All @@ -18,3 +23,9 @@

# Expose quantus.helpers.constants to the user.
from quantus.helpers.constants import *

# Expose the model interfaces.
from quantus.helpers.model import *

# Expose the helpers utils.
from quantus.helpers.utils import *
2 changes: 1 addition & 1 deletion quantus/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

# Import files dependent on package installations.
__EXTRAS__ = util.find_spec("captum") or util.find_spec("tf_explain")
__MODELS__ = util.find_spec("torch") or util.find_spec("tensorflow")
__MODELS__ = util.find_spec("torch") or util.find_spec("tensorflow")

0 comments on commit 823a592

Please sign in to comment.