Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
ace1bc2e
Commit
ace1bc2e
authored
Mar 27, 2018
by
Konstantinos Chatzilygeroudis
Browse files
New benchmarks [ci skip]
parent
65e9dc44
Changes
2
Hide whitespace changes
Inline
Side-by-side
waf_tools/benchmark_template.cpp
View file @
ace1bc2e
...
@@ -138,9 +138,9 @@ void benchmark(const std::string& name, std::vector<int> dimensions, std::vector
...
@@ -138,9 +138,9 @@ void benchmark(const std::string& name, std::vector<int> dimensions, std::vector
double
deltamax
=
50
;
double
deltamax
=
50
;
double
etaminus
=
0.5
;
double
etaminus
=
0.5
;
double
etaplus
=
1.2
;
double
etaplus
=
1.2
;
rprop_optimizer
.
init
(
1e-
4
,
delta0
,
deltamin
,
deltamax
,
etaminus
,
etaplus
);
rprop_optimizer
.
init
(
1e-
2
,
delta0
,
deltamin
,
deltamax
,
etaminus
,
etaplus
);
auto
start_libgp
=
std
::
chrono
::
high_resolution_clock
::
now
();
auto
start_libgp
=
std
::
chrono
::
high_resolution_clock
::
now
();
rprop_optimizer
.
maximize
(
&
libgp_gp
,
30
0
,
false
);
rprop_optimizer
.
maximize
(
&
libgp_gp
,
5
0
,
false
);
auto
time_libgp
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
std
::
chrono
::
high_resolution_clock
::
now
()
-
start_libgp
).
count
();
auto
time_libgp
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
std
::
chrono
::
high_resolution_clock
::
now
()
-
start_libgp
).
count
();
std
::
cout
<<
std
::
setprecision
(
std
::
numeric_limits
<
long
double
>::
digits10
+
1
);
std
::
cout
<<
std
::
setprecision
(
std
::
numeric_limits
<
long
double
>::
digits10
+
1
);
std
::
cout
<<
"Time of libGP in secs: "
<<
time_libgp
/
double
(
1000000.0
)
<<
std
::
endl
;
std
::
cout
<<
"Time of libGP in secs: "
<<
time_libgp
/
double
(
1000000.0
)
<<
std
::
endl
;
...
...
waf_tools/regression_benchmarks.json
View file @
ace1bc2e
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
"points"
:
[
50
,
100
,
200
,
400
,
600
],
"points"
:
[
50
,
100
,
200
,
400
,
600
],
"randomness"
:
[
"uniform"
],
"randomness"
:
[
"uniform"
],
"noise"
:
"true"
,
"noise"
:
"true"
,
"models"
:
[{
"name"
:
"GP-SE-Full-Rprop"
,
"type"
:
"GP"
,
"kernel"
:
{
"type"
:
"SquaredExpARD"
,
"optimize_noise"
:
"true"
,
"params"
:
{
"sigma_sq"
:
[
"double"
,
1.0
]}},
"mean"
:
{
"type"
:
"NullFunction"
,
"has_defaults"
:
"false"
},
"hp_opt"
:
{
"type"
:
"KernelLFOpt"
,
"optimizer"
:
"Rprop"
,
"params"
:
{
"eps_stop"
:
[
"double"
,
1e-4
]}}},
"models"
:
[{
"name"
:
"GP-SE-Full-Rprop"
,
"type"
:
"GP"
,
"kernel"
:
{
"type"
:
"SquaredExpARD"
,
"optimize_noise"
:
"true"
,
"params"
:
{
"sigma_sq"
:
[
"double"
,
1.0
]}},
"mean"
:
{
"type"
:
"NullFunction"
,
"has_defaults"
:
"false"
},
"hp_opt"
:
{
"type"
:
"KernelLFOpt"
,
"optimizer"
:
"Rprop"
,
"params"
:
{
"iterations"
:
[
"int"
,
50
],
"eps_stop"
:
[
"double"
,
1e-2
]}}},
{
"name"
:
"GP-SE-Full-SLSQP"
,
"type"
:
"GP"
,
"kernel"
:
{
"type"
:
"SquaredExpARD"
,
"optimize_noise"
:
"true"
,
"params"
:
{
"sigma_sq"
:
[
"double"
,
1.0
]}},
"mean"
:
{
"type"
:
"NullFunction"
,
"has_defaults"
:
"false"
},
"hp_opt"
:
{
"type"
:
"KernelLFOpt"
,
"optimizer"
:
[
"NLOptGrad"
,
"nlopt::LD_SLSQP"
],
"params"
:
{
"fun_tolerance"
:
[
"double"
,
1e-4
],
"xrel_tolerance"
:
[
"double"
,
1e-4
]}}},
{
"name"
:
"GP-SE-Rprop"
,
"type"
:
"GP"
,
"kernel"
:
{
"type"
:
"SquaredExpARD"
,
"optimize_noise"
:
"false"
,
"params"
:
{
"sigma_sq"
:
[
"double"
,
1.0
]}},
"mean"
:
{
"type"
:
"NullFunction"
,
"has_defaults"
:
"false"
},
"hp_opt"
:
{
"type"
:
"KernelLFOpt"
,
"optimizer"
:
"Rprop"
,
"params"
:
{
"iterations"
:
[
"int"
,
50
],
"eps_stop"
:
[
"double"
,
1e-2
]}}}]
{
"name"
:
"GP-SE-Rprop"
,
"type"
:
"GP"
,
"kernel"
:
{
"type"
:
"SquaredExpARD"
,
"optimize_noise"
:
"false"
,
"params"
:
{
"sigma_sq"
:
[
"double"
,
1.0
]}},
"mean"
:
{
"type"
:
"NullFunction"
,
"has_defaults"
:
"false"
},
"hp_opt"
:
{
"type"
:
"KernelLFOpt"
,
"optimizer"
:
"Rprop"
,
"params"
:
{
"eps_stop"
:
[
"double"
,
1e-4
]}}}]
}]
}]
Write
Preview
Markdown
is supported
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