-
Notifications
You must be signed in to change notification settings - Fork 25
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
Changes to swap rule and to acc_tuner #26
base: master
Are you sure you want to change the base?
Conversation
In order to implement the swap rule ``` if evj.value - evi.value < algo["maxdists"][i] swap_ev_ij!(algo,i,j) end ``` I changed the default `dist_fun` into `-`, so that the algorithm looks at `algo.dist_fun(evj.value, evi.value)`. In addition, I changed the default `maxdists` to a vector of zeros, so that the default swap rule is simply `evj.value < evi.value`, as suggested by BGP. I also introduced a vector `acc_tuners` as a field of `MAlgoBGP` so that each chain can have its own value for `acc_tuner`. This allows more control on the algorithm. Ideally, you might want to be more restrictive (i.e., higher `acc_tuner`) on colder chains.
Codecov Report
@@ Coverage Diff @@
## master #26 +/- ##
==========================================
- Coverage 52.5% 52.29% -0.21%
==========================================
Files 14 14
Lines 960 960
==========================================
- Hits 504 502 -2
- Misses 456 458 +2
Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build 209
💛 - Coveralls |
can you just let me know when you are done with this? Im planning to move to julia 0.7 in the coming days, so i may wait (or not) depending on that. |
OK, I will do this as soon as possible! |
In order to implement the swap rule
I realized I could simply change the default
dist_fun
into-
, so that the algorithm looks atalgo.dist_fun(evj.value, evi.value)
being by default-(evj.value, evi.value)
but still being editable by users. In addition, I changed the defaultmaxdists
to a vector of zeros, so that the default swap rule is simplyevj.value < evi.value
, as suggested by BGP.I also introduced a vector
acc_tuners
as a field ofMAlgoBGP
so that each chain can have its own value foracc_tuner
. This allows for more control on the algorithm. Ideally, one might want to be more restrictive (i.e., higheracc_tuner
) on colder chains.