-
Notifications
You must be signed in to change notification settings - Fork 20
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
Issue/401/use qp+fix zinteg #644
Conversation
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.
-
Should we add
qp
torequirements.txt
and the Requirements section inREADME
? -
It seems to me that the imports in some of the files are not compliant with PEP8, but since
pylint
doesn't complain about C0411 / wrong-import-order, it is not a big deal. I am just wondering.
examples/test_pz_integral.ipynb
Outdated
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.
This new notebook is very useful to see the various behaviors, but the markdown text needs to be corrected/expanded to help the user understand better what is happening. At the moment, the markdown seems to copied/pasted from another demo notebook and gives little information as to what is actually happening.
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.
Would be good to add a legend in the figure comparing the pdz computed for the 3 types (individual, shared and quantiles)
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.
Also, maybe add some explanation text for the last figure of the notebook. I find trick to understand what is actually shown.
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.
And why is the qp integral performing worse than the clmm-implemented ones but for the "quantiles" case where qp appears to perform better?
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.
Thanks for the comments! I added more explanation to the notebook
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.
I think that qp
is performing worse than clmm
because it kind of used a type like integral with the precision set by the separation of the zbins of the input provided, and in clmm
we are refining the grid for the integral.
In the case of using quantiles, I think qp
might be outperforming clmm
because it is actually using the statistical meaning of quantiles while clmm
recreates an interpolated PDF and integrates it, thus loosing information.
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.
Thank you @m-aguena. It's great to see qp and the quantile option available!
I've tested the code and everything appears to be working well. I just have comments about the new notebook showing the integral with qp versus clmm, etc. At the moment, I don't think they are enough or clear enough markdown explanations to easily understand what this is doing.
(And sorry, I clicked on "comment-only" for some comments and on "review" so they don't all appear in the "review" below)
examples/test_pz_integral.ipynb
Outdated
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.
Also, maybe add some explanation text for the last figure of the notebook. I find trick to understand what is actually shown.
examples/test_pz_integral.ipynb
Outdated
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.
And why is the qp integral performing worse than the clmm-implemented ones but for the "quantiles" case where qp appears to perform better?
…robability_details.ipynb
I added qp ( |
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.
Thanks for adding more explanations to the notebook. All looks good to me know!
Using
qp
for handling PDFs. The main changes are:_integ_pzfuncs
is done byqp
.quantiles
as the PDF information:generate_galaxy_catalog
GCData
object convert the quantiles into a PDF grid withGCData.get_pzpdfs
, which is used in the integration mentioned above.Closes #401 and #643