Skip to content

Commit

Permalink
Merge pull request #315 from understandable-machine-intelligence-lab/…
Browse files Browse the repository at this point in the history
…0.5.1release

Update pandas version control and warn message for Model Parameter Randomisation Test
  • Loading branch information
annahedstroem authored Nov 27, 2023
2 parents ee64963 + 4e199df commit c33f403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
dependencies = [
"numpy>=1.19.5",
"pandas<=1.3.3; python_version == '3.7'",
"pandas>=2.0.1; python_version > '3.7'",
"pandas>=1.5.3; python_version > '3.7'",
"opencv-python>=4.5.5.62",
"scikit-image>=0.19.3",
"scikit-learn>=0.24.2",
Expand Down
3 changes: 1 addition & 2 deletions quantus/metrics/randomisation/mprt.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,10 @@ def evaluate_batch(self, *args, **kwargs):
@final
class ModelParameterRandomisation(MPRT):
def __init__(self, *args, **kwargs):
warnings.warn(
print(
"ModelParameterRandomisation metric has been renamed to MPRT and will "
"be removed in future releases. Please call quantus.MPRT() instead.\n"
"This change is effective from Quantus version 0.5.0. Note: MPRT is "
"functionally identical to ModelParameterRandomisation and can be used in the same way.",
DeprecationWarning,
)
super().__init__(*args, **kwargs)

0 comments on commit c33f403

Please sign in to comment.