-
Notifications
You must be signed in to change notification settings - Fork 145
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
Gaussian Processes Tool #739
Gaussian Processes Tool #739
Conversation
Codecov Report
@@ Coverage Diff @@
## main #739 +/- ##
==========================================
+ Coverage 97.13% 97.29% +0.16%
==========================================
Files 42 43 +1
Lines 7929 7918 -11
==========================================
+ Hits 7702 7704 +2
+ Misses 227 214 -13
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
c0019f9
to
7412b3d
Compare
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.
Note that jax will be imported also when you run the test suite and pytest goes through all the modules, so the same try... except ImportError
clause you use in the main code should be used here.
d4519eb
to
de35cb5
Compare
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.
Overall, this is looking great! A bunch of comments (some of them possible old and outdates, I have started adding comments before, but I can't see them anymore, so let me know if something pops up that looks weird or that you don't understand), but mostly quite minor. Great work!
92c52c8
to
8c64116
Compare
Fixes for GP Modeling code
Hello @Gaurav17Joshi! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
The black issue is my fault, I will fix this in the next PR. Other than that, all the tests are passing, all of Matteo's and my nitpicky comments have been addressed, and I think this is ready for merging. Thank you, @Gaurav17Joshi for your fantastic work! It was a big effort, but I'm so excited that this method is now in stingray! |
Gaussian Processes Feature for QPO detection
Addressing #660 . This is an implementation for the GP tool (mainly for detection and parameter analysis for QPOs) . This addition makes use of tinygp library for Gaussian Processes implementation, and jaxns for nested sampling.
The new feature is in the
stingray.modeling.gpmodelling.py
file.It has three main features:-
get_prior
: This function makes the prior function for a specified prior dictionary.get_likelihood
: This function makes the log_likelihood function for the given Kernel, Mean model and lightcurve.Work Remaining To be done:-