We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e2bf96 commit 22dc0daCopy full SHA for 22dc0da
test/strategies/adaptive.jl
@@ -120,15 +120,12 @@ for acceleration in modes
120
best_loss = rep.best_history_entry.measurement[1]
121
push!(losses, best_loss)
122
123
- @show best_loss baseline_best_loss
124
-
125
# There is no reason to expect PSO to be better than
126
- # RandomSearch, but they should give results with similar order
127
- # of magnitude:
+ # RandomSearch, but they should give similar results, say within 10%:
128
129
- @test abs(best_loss/baseline_best_loss - 1) < 1
+ @test abs(best_loss/baseline_best_loss - 1) < 0.1
130
end
131
132
133
println("Adaptive PSO losses (see Issue #14):")
134
-(; modes, losses) |> MLJBase.pretty
+(; modes=modes, losses=losses) |> MLJBase.pretty
0 commit comments