Skip to content

Conversation

@djinnome
Copy link
Contributor

@djinnome djinnome commented Oct 1, 2024

Need an example AMR that contains LogitNormal1 distribution for unit test.

@djinnome djinnome linked an issue Oct 1, 2024 that may be closed by this pull request
@djinnome djinnome self-assigned this Oct 1, 2024
@djinnome djinnome marked this pull request as ready for review January 7, 2025 23:54
@djinnome djinnome requested a review from Copilot January 7, 2025 23:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

def mira_logistic_normal_to_pyro(
parameters: ParameterDict,
) -> pyro.distributions.Distribution:
if "location" in parameters.keys():
Copy link

Copilot AI Jan 7, 2025

Choose a reason for hiding this comment

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

The function does not handle the case where neither 'location' nor 'mu' is present in the parameters, leading to an undefined variable error for 'loc'.

Copilot uses AI. Check for mistakes.
elif "mu" in parameters.keys():
loc = parameters["mu"]

if "scale" in parameters.keys():
Copy link

Copilot AI Jan 7, 2025

Choose a reason for hiding this comment

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

The function does not handle the case where none of 'scale', 'sigma', or 'tau' is present in the parameters, leading to an undefined variable error for 'scale'.

Copilot uses AI. Check for mistakes.
@djinnome
Copy link
Contributor Author

djinnome commented Jan 7, 2025

Needs some test code and to address copilots suggestions.

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.

[FEAT] Add support for logit-normal distributions for parameters

2 participants