Skip to content

Commit

Permalink
tighten optimization criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
zbmorro committed Mar 21, 2024
1 parent 71d6c47 commit 0f94b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyapprox/sciml/tests/test_integral_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ def test_chebyshev_convolution_operator_1d(self):
[IdentityActivation()])
training_samples = u[:, None]
training_values = u_tconv_v[:, None]
ctn.fit(training_samples, training_values, tol=1e-10)
ctn.fit(training_samples, training_values, tol=1e-12)

tol = 4e-4
relerr = (tw.norm(fct.fct(v)[:kmax+1] - ctn._hyp_list.get_values()) /
tw.norm(fct.fct(v)[:kmax+1]))
print(relerr)
assert relerr < tol, f'Relative error = {relerr:.2e} > {tol:.2e}'

def test_chebyshev_convolution_operator_multidim(self):
Expand Down

0 comments on commit 0f94b37

Please # to comment.