-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix acceptance rate reporting #20
base: master
Are you sure you want to change the base?
Conversation
…ame because it causes problems in windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small suggestions. Also wondering if there's any kind of unit test that would be appropriate here, like a pause/resume to test the file save/load. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should the reporting files be deleted by default when PyDREAM completes? Maybe with a |
See my pull request here: #22 |
@alubbock @michael-irvin Might be better to have a |
fixing typo that prevented pydream from running restarts from history
Would this re-create the issue of acceptance rates mysteriously decreasing after the first restart? |
ummm good point. Yes, this would recreate that issue as to get to obtain correctly the acceptance rates the history file is required |
Ok, since the naccepts files are necessary to restart pydream and have the correct acceptance rates, we shouldn't delete them. If you @alubbock @michael-irvin are ok with this I am going to go ahead and merge this PR |
Don't merge our own PR, that's bad form
…On Wed, Jul 8, 2020 at 1:01 PM Oscar Ortega ***@***.***> wrote:
Ok, since the naccepts files are necessary to restart pydream and have the
correct acceptance rates, we shouldn't delete them. If you @alubbock
<https://github.com/alubbock> @michael-irvin
<https://github.com/michael-irvin> are ok with this I am going to go
ahead and merge this PR
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKK3Y5IHE7KRSWNZS524LTR2SX73ANCNFSM4NFFDGAA>
.
|
*your
…On Wed, Jul 8, 2020 at 2:21 PM Leonard Harris ***@***.***> wrote:
Don't merge our own PR, that's bad form
On Wed, Jul 8, 2020 at 1:01 PM Oscar Ortega ***@***.***>
wrote:
> Ok, since the naccepts files are necessary to restart pydream and have
> the correct acceptance rates, we shouldn't delete them. If you @alubbock
> <https://github.com/alubbock> @michael-irvin
> <https://github.com/michael-irvin> are ok with this I am going to go
> ahead and merge this PR
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#20 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAKK3Y5IHE7KRSWNZS524LTR2SX73ANCNFSM4NFFDGAA>
> .
>
|
Yeah @lh64 , I think that there are not standardized best practices for merging pull requests. What most people agree on is to only merge after the reviewers have approved the PR (https://www.quora.com/Is-it-best-practice-to-merge-your-own-pull-request-or-have-someone-else-do-it-on-Github). Since @alubbock and @michael-irvin already approved the PR, and there are no new comments or concerns I thought it was fine to go ahead and merge the PR |
After restarting a pydream calibration, pydream was calculating the acceptance rate as it has just begun instead of taking into account the previous iterations and number of accepted points. This PR saves the acceptance rates per calibration run and the number of accepted points to files and then used them for reference when the pydream calibration is restarted.