Skip to content

Commit e758f21

Browse files
authoredMar 2, 2023
Merge pull request #386 from UCL-CCS/grid_search
Grid search
2 parents 6dd5ec6 + 4e194e0 commit e758f21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2261
-269
lines changed
 

‎easyvvuq/actions/execute_local.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def start(self, previous=None):
268268
for action in self.actions:
269269
previous = self.wrapper(action, previous)
270270
self.result = previous
271-
assert(self.result['run_id'] == run_id)
271+
assert (self.result['run_id'] == run_id)
272272
return previous
273273

274274
def finished(self):

‎easyvvuq/analysis/pce_analysis.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ def sobols(P, coefficients):
350350
varied = [_ for _ in self.sampler.vary.get_keys()]
351351
S1 = {_: np.zeros(sobol.shape[-1]) for _ in varied}
352352
ST = {_: np.zeros(sobol.shape[-1]) for _ in varied}
353-
#S2 = {_ : {__: np.zeros(sobol.shape[-1]) for __ in varied} for _ in varied}
354-
#for v in varied: del S2[v][v]
353+
# S2 = {_ : {__: np.zeros(sobol.shape[-1]) for __ in varied} for _ in varied}
354+
# for v in varied: del S2[v][v]
355355
S2 = {_: np.zeros((len(varied), sobol.shape[-1])) for _ in varied}
356356
for n, si in enumerate(sobol_idx):
357357
if len(si) == 1:
@@ -360,8 +360,8 @@ def sobols(P, coefficients):
360360
elif len(si) == 2:
361361
v1 = varied[si[0]]
362362
v2 = varied[si[1]]
363-
#S2[v1][v2] = sobol[n]
364-
#S2[v2][v1] = sobol[n]
363+
# S2[v1][v2] = sobol[n]
364+
# S2[v2][v1] = sobol[n]
365365
S2[v1][si[1]] = sobol[n]
366366
S2[v2][si[0]] = sobol[n]
367367
for i in si:

0 commit comments

Comments
 (0)
Please sign in to comment.