Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
e6697adb
Commit
e6697adb
authored
Mar 04, 2016
by
theos
Browse files
Fixed a bug in the seed generator of non-parallel diagonal probing.
parent
6b0bd3ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty_core.py
View file @
e6697adb
...
...
@@ -9851,8 +9851,9 @@ class probing(object):
_sum
=
0
_num
=
0
_var
=
0
random_seeds
=
np
.
random
.
randint
(
10
**
8
,
high
=
None
,
size
=
self
.
nrun
)
for
ii
in
xrange
(
self
.
nrun
):
result
=
self
.
_single_probing
((
np
.
random
.
randint
(
10
**
8
,
high
=
None
,
size
=
None
),
ii
))
## tuple(seed,idnum)
result
=
self
.
_single_probing
((
random
_seeds
[
ii
],
ii
))
## tuple(seed,idnum)
if
(
result
is
not
None
):
_sum
+=
result
## result: {scalar, np.array}
_num
+=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment