adw96 / DivNet

diversity estimation under ecological networks
83 stars 18 forks source link

Tracking accept values in the EM loop #46

Closed mooreryan closed 3 years ago

mooreryan commented 4 years ago

While working on #45 I found that the acceptance values were being stored in accept_list but that they weren't actually being used anywhere (as far as I can tell).

It's created here:

https://github.com/adw96/DivNet/blob/ad616a02f93800eb1e63e1088fdbc74f01bf78b0/R/fit_aitchison.R#L119

And updated here during the EM iterations:

https://github.com/adw96/DivNet/blob/ad616a02f93800eb1e63e1088fdbc74f01bf78b0/R/fit_aitchison.R#L160

I can't seem to find that being used anywhere....is it necessary to track them like this?

mooreryan commented 4 years ago

I removed all references to those lines and the tests still passed. So just wondering if it is something that should be used anywhere or if it is okay to remove.

adw96 commented 4 years ago

If it's not huge memory overhead, I'd love to keep them. They are helpful for tuning the MH algorithm to ensure fast convergence (essentially it controls the size of the proposed steps). As a developer I don't often need them but I want to be able to easily pull them out if I do need to. Thanks so much, @mooreryan !!

mooreryan commented 4 years ago

Ah, I just saw this....I actually removed tracking them in #47, but if you want I can try and put them back in!

svteichman commented 3 years ago

Closing this issue because I just checked fit_aitchison.R, and both lines 119 and 160 are there tracking the accept values. Thanks for your help Ryan!