Skip to content

Commit

Permalink
tune GP sampler
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Jan 2, 2021
1 parent a6ffe8c commit 26fe0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/samplers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function (s::GPSampler)(ho, iter)
# plot(s) |> display
# plot!(x->acqfunc([x]), 1, 5, sp=2)
# sleep(0.2)
iters = min(30, prod(length, s.candidates))
iters = min(70, prod(length, s.candidates))
# iters = 3000
ho2 = Hyperoptimizer(iterations=iters, params=ho.params, candidates=s.candidates)
for params in ho2
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ f(a,b=true;c=10) = sum(@. 100 + (a-3)^2 + (b ? 10 : 20) + (c-100)^2) # This func
end

results = map(1:20) do _
hogp = @hyperopt for i=60, sampler=GPSampler(Min), a = LinRange(1,5,100), b = repeat([true, false]',50)[:], c = exp10.(LinRange(-1,3,100))
hogp = @hyperopt for i=40, sampler=GPSampler(Min), a = LinRange(1,5,100), b = repeat([true, false]',50)[:], c = exp10.(LinRange(-1,3,100))
# println(i, "\t", a, "\t", b, "\t", c)
f(a,Bool(b),c=c)
end
Expand Down

0 comments on commit 26fe0b3

Please sign in to comment.