Skip to content

Commit f82f497

Browse files
committed
fix typo in adaptive loss accuracy tests
1 parent 513cd2d commit f82f497

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/adaptive_loss_tests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ maxiters=4000
2323
seed=60
2424

2525
## 2D Poisson equation
26-
function test_2d_poisson_equation_adaptive_loss(adaptive_loss, run; seed=60, maxiters=4000)
26+
function test_2d_poisson_equation_adaptive_loss(adaptive_loss; seed=60, maxiters=4000)
2727
Random.seed!(seed)
2828
hid = 40
2929
chain_ = FastChain(FastDense(2,hid,Flux.σ),FastDense(hid,hid,Flux.σ),FastDense(hid,1))
3030
strategy_ = NeuralPDE.StochasticTraining(256)
31-
@info "adaptive reweighting test outdir: $(outdir), maxiters: $(maxiters), 2D Poisson equation, adaptive_loss: $(nameof(typeof(adaptive_loss))) "
31+
@info "adaptive reweighting test outdir:, maxiters: $(maxiters), 2D Poisson equation, adaptive_loss: $(nameof(typeof(adaptive_loss))) "
3232
@parameters x y
3333
@variables u(..)
3434
Dxx = Differential(x)^2
@@ -89,8 +89,8 @@ end
8989

9090

9191
@info "testing that the adaptive loss methods roughly succeed"
92-
test_2d_poisson_equation_adaptive_loss_no_logs_run_seediters(adaptive_loss, run) = test_2d_poisson_equation_adaptive_loss(adaptive_loss, run; seed=seed, maxiters=maxiters)
93-
error_results_no_logs = map(test_2d_poisson_equation_adaptive_loss_no_logs_run_seediters, adaptive_losses, 1:length(adaptive_losses))
92+
test_2d_poisson_equation_adaptive_loss_no_logs_run_seediters(adaptive_loss) = test_2d_poisson_equation_adaptive_loss(adaptive_loss; seed=seed, maxiters=maxiters)
93+
error_results_no_logs = map(test_2d_poisson_equation_adaptive_loss_no_logs_run_seediters, adaptive_losses)
9494

9595
# accuracy tests
9696
@show error_results_no_logs[1][:total_diff_rel]

0 commit comments

Comments
 (0)