-
Notifications
You must be signed in to change notification settings - Fork 26
Added a function that plots log-likelihood scores #119
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
Conversation
|
this looks great @bayonato89 ! i haven't looked through the code in detail yet, but i did notice that i think we want to place these functions in |
|
Removed the plot_diff_spatial_likelihood function from the poisson_evaluation.py file, and inserted it into the plots.py file. |
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
+ Coverage 56.88% 57.46% +0.58%
==========================================
Files 19 19
Lines 3115 3120 +5
Branches 451 452 +1
==========================================
+ Hits 1772 1793 +21
+ Misses 1237 1217 -20
- Partials 106 110 +4
Continue to review full report at Codecov.
|
|
@bayonato89 i'd like to first add this function to the documentation to show an example of how to make a custom figure using matplotlib. having some kind of a cookbook could be cool and this figure might be a nice start. i can think of a few functions in the current |
|
Yes, documenting how to 'cook' custom plots is a good idea, but doesn't For instance, this new plotting function of @bayonato89 shows a data layer on a map, which may be a common use case for which CSEP already has appropriate functions in place. But entirely new plots are rather difficult to anticipate. In case we want to document the 'cooking' in more detail, it may be sufficient to focus on one or more cases that adapt/extend one of CSEP's elemental plotting functions (e.g., a map) with a new feature (layer). For this purpose, I believe that @bayonato89's example is actually a good candidate to document. (side note: shouldn't this function make use of @wsavran: Did you intend to make this 'cookbook' a subsection of docs.cseptesting.org/tutorials/plot_customizations.html? In addition, we might also include an enumeration of elemental CSEP plotting functions that have the potential to be extended/modified. |
|
@mherrmann3 I agree In the case of the 'cookbook' it would be a new section on the documentation page at the same level (or one below) tutorials. An example URL might read A main reason for this is that we could provide a place where users could submit 'recipes' (they don't necessarily have to be plotting functions) that aren't required to work with the pyCSEP plotting wrapper (ie Candidate functions to move into the cookbook would be
|
|
Ah, now I got you. (I understood to create a place where some pyCSEP functions are described in more detail to help creating new ones). So it's about a collection of optional functions. Yes, I like this idea! Basically like gist.github.com integrated into our docs. We could also think about shipping them with pyCSEP in a separate module (e.g., 'addons') to facilitate their use. PS: should we move this discussion to a new issue? |
|
@mherrmann3 yes exactly! its kind of a place to allow for contributions that make sense to share with others but work standalone and dont' need to be integrated into the main package. i have started a notebooks folder that we might use for this. that way functions can be self documented within the package. im closing this pull request, but opening in an new issue to continue the discussion. |
No description provided.