Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
a881154f
Commit
a881154f
authored
Dec 16, 2015
by
Jean-Baptiste Mouret
Browse files
compile the extensive tests
parent
b52d9bbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/tests/all_combinations_template.cpp
View file @
a881154f
...
...
@@ -35,10 +35,13 @@ struct Params {
struct
opt_gridsearch
{
BO_PARAM
(
int
,
bins
,
20
);
};
struct
opt_cmaes
:
public
defaults
::
opt_cmaes
{
};
#ifdef USE_LIBCMAES
struct
opt_cmaes
:
public
defaults
::
opt_cmaes
{
};
#elif defined(USE_NLOPT)
struct
opt_nloptnograd
:
public
defaults
::
opt_nloptnograd
{
};
#endif
struct
opt_rprop
:
public
defaults
::
opt_rprop
{
};
...
...
@@ -120,4 +123,4 @@ int main()
@
optimizer
.
best_observation
(
Average
());
@
optimizer
.
best_sample
(
Average
());
// clang-format on
}
\ No newline at end of file
}
src/tests/create_all_combinations_test.py
View file @
a881154f
...
...
@@ -23,7 +23,12 @@ def create(bld):
models
=
[
'GP'
]
gp_lf_optimizations
=
[
'NoLFOpt'
,
'KernelLFOpt'
,
'KernelMeanLFOpt'
,
'MeanLFOpt'
]
acquisitions
=
[
'UCB'
,
'GP_UCB'
]
optimizers
=
[
'RandomPoint'
,
'GridSearch'
,
'Cmaes'
]
optimizers
=
[
'RandomPoint'
,
'GridSearch'
]
if
bld
.
env
.
DEFINES_NLOPT
:
optimizers
+=
[
'NLOptNoGrad'
,
'NLOptGrad'
]
if
bld
.
env
.
DEFINES_LIBCMAES
:
optimizers
+=
[
'Cmaes'
]
inits
=
[
'NoInit'
,
'RandomSampling'
,
'RandomSamplingGrid'
,
'GridSampling'
]
stats
=
[
'Samples'
,
'Observations'
,
'AggregatedObservations'
,
'BestSamples'
,
'BestObservations'
,
'BestAggregatedObservations'
,
'BlSamples'
,
'GPPredictionDifferences'
,
'GPAcquisitions'
,
'GPLikelihood'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment