Skip to content

Commit 5dbac80

Browse files
authored
Merge pull request #338 from IBM/development_maintenance
Development maintenance
2 parents 225bf7e + 9159814 commit 5dbac80

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.lgtm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
queries:
22
- exclude: py/import-own-module
3+
- exclude: py/similar-function

art/attacks/evasion/pixel_threshold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131

3232
import numpy as np
3333

34-
from cma import CMAEvolutionStrategy, CMAOptions
35-
3634
# Currently, a modified version of SciPy's differential evolution is used in
3735
# code. An ideal version would be using the import as follows,
3836
# from scipy.optimize import differential_evolution
@@ -209,6 +207,7 @@ def callback_fn(x, convergence=None):
209207

210208
if self.es == 0:
211209

210+
from cma import CMAOptions
212211
opts = CMAOptions()
213212

214213
if not self.verbose:
@@ -224,6 +223,7 @@ def callback_fn(x, convergence=None):
224223
else:
225224
std = limit
226225

226+
from cma import CMAEvolutionStrategy
227227
strategy = CMAEvolutionStrategy(initial, std / 4, opts)
228228

229229
try:

readthedocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ python:
88
use_system_site_packages: true
99
extra_requirements:
1010
- docs
11+
install:
12+
- requirements: requirements.txt

0 commit comments

Comments
 (0)