Skip to content

Commit

Permalink
Small change in optimization example.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuellujan committed Jul 9, 2024
1 parent 4c22295 commit b2e9a74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/Opt-ACE-aHfO2/fit-opt-ace-ahfo2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pars = OrderedDict( :body_order => [2, 3, 4],
:csp => LinRange(0.5, 1.5, 10),
:r0 => LinRange(0.5, 1.5, 10));

# Use **latin hypercube sampling** to find the optimal hyper-parameters.
# Use **latin hypercube sampling** to find the optimal hyper-parameters. Alternatively, use **random sampling** (sampler = RandomSampler()).
sampler = CLHSampler(dims=[Categorical(3), Categorical(3), Continuous(),
Continuous(), Continuous(), Continuous()])
iap, res = hyperlearn!(model, pars, conf_train;
Expand All @@ -76,5 +76,3 @@ err_time = plot_err_time(res)
@save_fig res_path err_time
DisplayAs.PNG(err_time)

# Alternatively, use **random sampling** using "sampler = RandomSampler()".

0 comments on commit b2e9a74

Please sign in to comment.