-
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
[ENH] Faster and more flexible code, and code sharing for kernel tests #19
Conversation
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #19 +/- ##
==========================================
+ Coverage 81.73% 82.83% +1.09%
==========================================
Files 8 9 +1
Lines 345 402 +57
Branches 66 72 +6
==========================================
+ Hits 282 333 +51
- Misses 47 49 +2
- Partials 16 20 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Tldr re: #19 (comment) I will put up a sep commit after Neurips rebuttal period is over to see if we can converge :) |
Can you investigate the failing checks? |
Signed-off-by: Adam Li <adam2392@gmail.com>
@bloebp lmk wdyt. I addressed the two issues:
E.g.
we want to call directly, but for the following, we would want to call it via
Should we have a rule that if the number of arguments in the kernel callable is exactly 1, then it is assumed to be some optimized kernel callable that is already vectorized and hence should be called directly? Otoh, if 2 possible function arguments, then it is better to pass it through |
I addressed the issue above and just made it clear that we assume the following:
|
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
@bloebp I will let you merge if it looks good to you. I enabled auto-squash merge commit. The last commit should fix the circleCI build. |
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Closes: #15 Follow-up to #19 Changes proposed in this pull request: - Adds `kcd` and `bremgan` test along w/ unit-tests and documentation update - As a result of #19, the code is entirely self-contained and leverages the kernel functions that are shared w/ the kci test. ## Before submitting <!-- Please complete this checklist BEFORE submitting your PR to speed along the review process. --> - [ ] I've read and followed all steps in the [Making a pull request](https://github.com/py-why/pywhy-stats/blob/main/CONTRIBUTING.md#making-a-pull-request) section of the `CONTRIBUTING` docs. - [ ] I've updated or added any relevant docstrings following the syntax described in the [Writing docstrings](https://github.com/py-why/pywhy-stats/blob/main/CONTRIBUTING.md#writing-docstrings) section of the `CONTRIBUTING` docs. - [ ] If this PR fixes a bug, I've added a test that will fail without my fix. - [ ] If this PR adds a new feature, I've added tests that sufficiently cover my new functionality. - [ ] I have added a changelog entry succintly describing the change in this PR in the [whats_new](https://github.com/py-why/pywhy-stats/blob/main/docs/whats_new/) relevant version document. ## After submitting <!-- Please complete this checklist AFTER submitting your PR to speed along the review process. --> - [ ] All GitHub Actions jobs for my pull request have passed. --------- Signed-off-by: Adam Li <adam2392@gmail.com>
Towards: #15
Changes proposed in this pull request:
This should all make implementation of the kcd test pretty straightforward
Before submitting
section of the
CONTRIBUTING
docs.Writing docstrings section of the
CONTRIBUTING
docs.After submitting