From 26fe0b3df06159ea7dbfc48d0cddd74cfc732fd6 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Sat, 2 Jan 2021 10:00:25 +0100 Subject: [PATCH] tune GP sampler --- src/samplers.jl | 2 +- test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/samplers.jl b/src/samplers.jl index 756de29..ed3be4c 100644 --- a/src/samplers.jl +++ b/src/samplers.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index faf95e4..65e5d19 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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