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

Add HalfNormal prior distribution for non-negative variables. #2147

Merged
merged 9 commits into from
Sep 30, 2022
Merged

Add HalfNormal prior distribution for non-negative variables. #2147

merged 9 commits into from
Sep 30, 2022

Conversation

ZitongZhou
Copy link
Contributor

Halfnormal distribution could be useful for variables that are constrained to be non-negative.

Halfnormal distribution could be useful for variables that are constrained to be non-negative.
@feynmanliang
Copy link
Contributor

Awesome, thanks!

Resolving comments.
Copy link
Collaborator

@Balandat Balandat left a comment

Choose a reason for hiding this comment

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

Thanks. Could you please also add some unit tests, similar to https://github.com/cornellius-gp/gpytorch/blob/master/test/priors/test_normal_prior.py ?

gpytorch/priors/torch_priors.py Outdated Show resolved Hide resolved
@ZitongZhou ZitongZhou requested review from Balandat and removed request for feynmanliang September 29, 2022 00:17
Copy link
Collaborator

@Balandat Balandat left a comment

Choose a reason for hiding this comment

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

generally lg let's fix the test and flake8

gpytorch/priors/__init__.py Outdated Show resolved Hide resolved
gpytorch/priors/torch_priors.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Balandat Balandat left a comment

Choose a reason for hiding this comment

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

Thanks!

@Balandat Balandat merged commit 8b23599 into cornellius-gp:master Sep 30, 2022
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.

None yet

3 participants