-
Notifications
You must be signed in to change notification settings - Fork 4
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 std to MLEFlux
, MLELumin
, and MLEEiso
#169
Conversation
Reviewer's Guide by SourceryThis pull request adds the standard deviation ('std') as a property to the MLEFlux, MLELumin, and MLEEiso NamedTuples. The standard deviation is calculated using the Hessian matrix of the likelihood function. Updated class diagram for MLEFluxclassDiagram
class MLEFlux {
<<NamedTuple>>
mle: dict[str, Q] | dict[str, dict[str, Q]]
std: dict[str, Q] | dict[str, dict[str, Q]]
intervals: dict[str, tuple[Q, Q]] | dict[str, dict[str, tuple[Q, Q]]]
errors: dict[str, tuple[Q, Q]] | dict[str, dict[str, tuple[Q, Q]]]
cl: float
}
note for MLEFlux "Added 'std' field"
Updated class diagram for MLELuminclassDiagram
class MLELumin {
<<NamedTuple>>
mle: dict[str, Q] | dict[str, dict[str, Q]]
std: dict[str, Q] | dict[str, dict[str, Q]]
intervals: dict[str, tuple[Q, Q]] | dict[str, dict[str, tuple[Q, Q]]]
errors: dict[str, tuple[Q, Q]] | dict[str, dict[str, tuple[Q, Q]]]
cl: float
}
note for MLELumin "Added 'std' field"
Updated class diagram for MLEEisoclassDiagram
class MLEEiso {
<<NamedTuple>>
cosmo: Cosmology
mle: dict[str, Q] | dict[str, dict[str, Q]]
std: dict[str, Q] | dict[str, dict[str, Q]]
intervals: dict[str, tuple[Q, Q]] | dict[str, dict[str, tuple[Q, Q]]]
}
note for MLEEiso "Added 'std' field"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @wcxve - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a unit test to verify the correctness of the calculated standard deviations.
- It might be helpful to add a brief explanation of how the standard deviation is calculated (e.g., from the Hessian) in the docstring.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
MLEFlux
, MLELumin
, and MLEEiso
Summary by Sourcery
New Features: