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

Clarify how to adjust GP hyp masks and cutoffs #200

Merged
merged 15 commits into from
Jul 13, 2020

Conversation

stevetorr
Copy link
Contributor

@stevetorr stevetorr commented Jul 7, 2020

Codifying some advice @nw13slx has given me in private communication into FLARE documentation, and updating the GP update_kernel method to simplify changing an extant GP to use a new set of hyperparameters.

@stevetorr stevetorr requested a review from nw13slx July 8, 2020 17:07
@stevetorr
Copy link
Contributor Author

@nw13slx feel free to squash and merge if this looks good!

Copy link
Collaborator

@nw13slx nw13slx left a comment

Choose a reason for hiding this comment

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

Looks good. It'll be even better if the arguments can be slightly adjusted for the update_kernel function

flare/gp.py Outdated

if hyps_mask is not None:
self.hyps_mask = hyps_mask
if self.cutoffs!= hyps_mask['cutoffs']:
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe make cutoff as an argument instead? hyps_mask does not necessarily have a cutoff argument.

flare/gp.py Outdated
if self.cutoffs!= hyps_mask['cutoffs']:
self.adjust_cutoffs(hyps_mask['cutoffs'],train = False,
new_hyps_mask = hyps_mask)
self.hyps = hyps_mask['hyps']
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above. let's just make hyps as an optional input argument.

>> hyps_mask = pm.as_dict()
>> hyps = hyps_mask['hyps']
>> kernels = hyps_mask['kernels']
>> gp_model.update_kernel(kernels, 'mc', hyps_mask)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can be revised accordingly.

@stevetorr stevetorr merged commit fa506ac into development Jul 13, 2020
@stevetorr stevetorr deleted the steven/documentation-update branch August 6, 2020 15:52
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.

2 participants