Skip to content

Commit 22dc0da

Browse files
committed
reduce tolerance on test just modified; fix julia 1.4 fussiness
1 parent 4e2bf96 commit 22dc0da

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/strategies/adaptive.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,12 @@ for acceleration in modes
120120
best_loss = rep.best_history_entry.measurement[1]
121121
push!(losses, best_loss)
122122

123-
@show best_loss baseline_best_loss
124-
125123
# There is no reason to expect PSO to be better than
126-
# RandomSearch, but they should give results with similar order
127-
# of magnitude:
124+
# RandomSearch, but they should give similar results, say within 10%:
128125

129-
@test abs(best_loss/baseline_best_loss - 1) < 1
126+
@test abs(best_loss/baseline_best_loss - 1) < 0.1
130127
end
131128
end
132129

133130
println("Adaptive PSO losses (see Issue #14):")
134-
(; modes, losses) |> MLJBase.pretty
131+
(; modes=modes, losses=losses) |> MLJBase.pretty

0 commit comments

Comments
 (0)