Skip to content

Commit 1e0a80c

Browse files
authored
Merge branch 'main' into main
2 parents 4eb460f + 09af05f commit 1e0a80c

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/workflows/ci-tensorflow-v1.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
sudo apt-get update
4949
sudo apt-get -y -q install ffmpeg libavcodec-extra
5050
python -m pip install --upgrade pip setuptools wheel
51-
pip install -q -r <(sed '/^pandas/d;/^scipy/d;/^matplotlib/d;/^xgboost/d;/^tensorflow/d;/^keras/d;/^jax/d;/^torch/d;/^Pillow/d;/^h5py/d;/^kornia/d;/^scikit-learn/d;/^pytest-mock/d;/^GPy/d;/^lief/d;/^statsmodels/d;/^ultralytics/d;/^ipython/d;/^numba/d;/^pytest/d;/^pylint/d;/^mypy/d;/^pycodestyle/d;/^black/d;/^types-PyYAML/d;/^types-setuptools/d;/^requests/d;/^timm/d' requirements_test.txt)
51+
pip install -q -r <(sed '/^pandas/d;/^scipy/d;/^matplotlib/d;/^xgboost/d;/^tensorflow/d;/^keras/d;/^jax/d;/^torch/d;/^Pillow/d;/^h5py/d;/^kornia/d;/^scikit-learn/d;/^pytest-mock/d;/^GPy/d;/^lief/d;/^statsmodels/d;/^ultralytics/d;/^ipython/d;/^numba/d;/^pytest/d;/^pylint/d;/^mypy/d;/^pycodestyle/d;/^black/d;/^types-PyYAML/d;/^types-setuptools/d;/^requests/d;/^timm/d;/^types-six/d' requirements_test.txt)
5252
pip install pandas==1.3.5
5353
pip install scipy==1.7.2
5454
pip install matplotlib==3.5.3
@@ -73,6 +73,7 @@ jobs:
7373
pip install pytest-cov
7474
pip install requests==2.31.0
7575
pip install timm==0.9.12
76+
pip install types-six==1.16.21.9
7677
pip list
7778
- name: Run Tests
7879
run: ./run_tests.sh ${{ matrix.framework }}

art/evaluations/security_curve/security_curve.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,12 @@ def plot(self) -> None: # pragma: no cover
165165
from matplotlib import pyplot as plt
166166

167167
plt.plot(self.eps_list, self.accuracy_adv_list, label="adversarial", marker="o")
168-
plt.plot([self.eps_list[0], self.eps_list[-1]], [self.accuracy, self.accuracy], linestyle="--", label="benign")
168+
plt.plot(
169+
[self.eps_list[0], self.eps_list[-1]], # type: ignore
170+
[self.accuracy, self.accuracy], # type: ignore
171+
linestyle="--",
172+
label="benign",
173+
)
169174
plt.legend()
170175
plt.xlabel("Attack budget eps")
171176
plt.ylabel("Accuracy")

art/visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def plot_3d(
150150
for i, coord in enumerate(points):
151151
try:
152152
color_point = labels[i]
153-
axis.scatter3D(coord[0], coord[1], coord[2], color=colors[color_point])
153+
axis.scatter3D(coord[0], coord[1], coord[2], color=colors[color_point]) # type: ignore
154154
except IndexError:
155155
raise ValueError(
156156
"Labels outside the range. Should start from zero and be sequential there after"

requirements_test.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
numpy>=1.18.5,<1.27
66
scipy==1.10.1
7-
matplotlib==3.7.1
7+
matplotlib==3.9.4
88
scikit-learn==1.6.1
99
six==1.17.0
1010
Pillow==11.1.0
@@ -47,7 +47,7 @@ xgboost==2.1.1
4747
kornia~=0.8.0
4848
tensorboardX==2.6.2.2
4949
lief==0.15.1
50-
jax[cpu]==0.4.26
50+
jax[cpu]==0.4.30
5151

5252
# lingvo==0.13.1
5353

@@ -60,8 +60,8 @@ mypy==1.11.1
6060
pycodestyle==2.12.1
6161
black==25.1.0
6262
ruff==0.9.3
63-
types-six==1.16.21.9
64-
types-PyYAML==6.0.12.20240917
63+
types-six==1.17.0.20250515
64+
types-PyYAML==6.0.12.20250516
6565
types-setuptools==80.9.0.20250529
6666

6767
# other

0 commit comments

Comments
 (0)