Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
17449c6d
Commit
17449c6d
authored
Apr 08, 2021
by
Reimar Leike
Browse files
Delete tests for too large factors
parent
9afb3f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_fisher_metric.py
View file @
17449c6d
...
...
@@ -96,7 +96,8 @@ def energy_tester(pos, get_noisy_data, energy_initializer):
lin
=
ift
.
Linearization
.
make_var
(
pos
,
want_metric
=
True
)
res2
=
_to_array
(
energy
(
lin
).
metric
(
test_vec
).
val
)
np
.
testing
.
assert_allclose
(
res
/
std
,
res2
/
std
,
atol
=
5
)
for
factor
in
[
0.01
,
0.5
,
2
,
100
]:
# Test whether one would detect a factor of 2 in the Fisher metric
for
factor
in
[
0.5
,
2
]:
with
pytest
.
raises
(
AssertionError
):
np
.
testing
.
assert_allclose
(
res
/
std
,
factor
*
res2
/
std
,
atol
=
5
)
...
...
Write
Preview
Supports
Markdown
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