-
-
Notifications
You must be signed in to change notification settings - Fork 380
Don't do inverse metric decomposition every draw #2894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 13 commits
45fff72
7582cce
548f992
83ef803
d4dd953
1da6121
a182f78
6f165f9
ed71201
7889b27
f8b5be7
a67e9e5
a8e7500
c4f30f6
cfdb3a2
6925d77
13d139f
83f551f
6482ba4
2977426
be91f7c
7072224
479783e
9093b0f
fd36a26
1c610a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,15 @@ class adapt_diag_e_static_uniform | |
this->stepsize_adaptation_.learn_stepsize(this->nom_epsilon_, | ||
s.accept_stat()); | ||
|
||
bool update = this->var_adaptation_.learn_variance(this->z_.inv_e_metric_, | ||
this->z_.q); | ||
Eigen::VectorXd inv_metric; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you know the size of this when you make it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could, but it gets resized in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you declare the sizes there then the resize is a no-op since it's already the correct size. But idt it's that big of a deal either way There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just left it off. It's kindof a weird thing happening here anyway (like |
||
|
||
bool update | ||
= this->var_adaptation_.learn_variance(inv_metric, this->z_.q); | ||
if (update) { | ||
this->z_.set_inv_metric(inv_metric); | ||
bbbales2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
this->init_stepsize(logger); | ||
|
||
this->stepsize_adaptation_.set_mu(log(10 * this->nom_epsilon_)); | ||
this->stepsize_adaptation_.restart(); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.