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

Feature/steven/gpfa checkpoints #99

Merged
merged 4 commits into from
Oct 21, 2019
Merged

Conversation

stevetorr
Copy link
Contributor

Closes #98 .
Implements checkpoints in GPFA.

Revert "GP now takes opt_params argument"

This reverts commit 81f9ea5.

Unit test patch- missing pickle

Import json

Import numpy encoder

Pep8 errors

Fixed bug in checkpoint

Bugfix in GPFA

Species conversion to coded species

Unit test now tests conversion of species
@@ -284,6 +299,11 @@ def train_gp(self):
self.gp.likelihood, self.gp.likelihood_gradient)
self.train_count += 1

if self.checkpoint_interval \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool. This is nice. Maybe we should also add a variable "last_step_written" to record when the gp was dumped. So it won't dump twice at the end of the run.

tests/test_gp.py Show resolved Hide resolved
@nw13slx nw13slx merged commit b3cff8f into master Oct 21, 2019
@nw13slx nw13slx deleted the feature/steven/gpfa_checkpoints branch October 21, 2019 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkpoints from GPFA
2 participants