Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
e2cbdb04
Commit
e2cbdb04
authored
Aug 04, 2018
by
Martin Reinecke
Browse files
relax test a little
parent
3fb9c0fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_energies/test_consistency.py
View file @
e2cbdb04
...
...
@@ -102,4 +102,4 @@ class Energy_Tests(unittest.TestCase):
d
=
np
.
random
.
binomial
(
1
,
0.1
,
size
=
space
.
shape
)
d
=
ift
.
Field
.
from_global_data
(
space
,
d
)
energy
=
ift
.
BernoulliEnergy
(
ift
.
positive_tanh
,
d
)
ift
.
extra
.
check_value_gradient_consistency
(
energy
,
model
,
tol
=
1
e-7
)
ift
.
extra
.
check_value_gradient_consistency
(
energy
,
model
,
tol
=
2
e-7
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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