Skip to content
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

bug fix in resuming GPSampler. #46

Merged
merged 10 commits into from Feb 21, 2021
Merged

bug fix in resuming GPSampler. #46

merged 10 commits into from Feb 21, 2021

Conversation

norci
Copy link
Contributor

@norci norci commented Feb 19, 2021

caused by

    if iter <= th

from

function Base.iterate(ho::Hyperoptimizer{<:GPSampler}, iter=1)

if iter is too small, then the model will not be trained.

btw, I guess Hyperband sampler need update too. I'll try it later.

so we can save ho progress periodically. or resume ho.
fixed a bug in pmacrobody.
for it might contain variables captured from outside.
if these variables have changed, then the old ho will be invalid.
so should only resume sampler and history.
also refactored code.
@baggepinnen baggepinnen merged commit 2f7821b into baggepinnen:master Feb 21, 2021
@baggepinnen
Copy link
Owner

Thanks for your continued contributions :)

@norci norci deleted the pm branch February 23, 2021 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants