-
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] Add fisher z test #7
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.
It shouldn't be part of this PR, but since it is still in a setup period, can we fix the build issues?
Can you also extend Regarding the discussions before, lets try to introduce some pattern for the naming. Here for instance: |
Quick question regarding this now that I'm trying this out. FisherZ test that I have rn nicely implements this with the What if we have a decorator pattern internally, or tags pattern, so that way a function can be marked where |
I was more thinking of a very simple solution like:
The original fisherz implementation is still in there, no need to modify or split that. Just so that one can always expect the pattern: We can of course still discuss the "indep" and "conindep" name. |
I like the design for a few reasons:
I have a few issues tho and hopefully we can figure out a way around them now before committing:
Some thoughts on an alternative API design proposalI'm trying to see if the following minor change would help us get the best of both worlds? If instead
Then, this
All hypothesis tests that do not support |
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
For the Regarding the high level API, using callables there would be fine for me too, although we most likely still end up having if/elifs if we do want to perform certain checks or preprocessings depending on the methods. Also, having Callables there makes it a bit more difficult to pass Regarding the type checking of the high level API, I wouldn't bother. Just pass it to the methods, which should raise an error accordingly. One thing that is also possible, which we e.g. do in DoWhy, you just make sure that you transform all columns to something numeric (e.g., apply one hot encoding to categorical data). |
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.
Cut and dry.
Curious why you call Z in the conditional tests as |
To make it more explicit that these are the variables we condition on. It also reads clearer as |
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Kay, I made some fixes and an attempt to document the "file" instead of functions. I honestly have never done that before, so we prolly need to make sure this looks right so we don't have documentation issues later on. @bloebp do you have a suggestion on how to format the documentation, so it's relatively nice and easy to read? |
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #7 +/- ##
==========================================
+ Coverage 0.00% 75.40% +75.40%
==========================================
Files 3 4 +1
Lines 18 61 +43
Branches 0 9 +9
==========================================
+ Hits 0 46 +46
+ Misses 18 14 -4
- Partials 0 1 +1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
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.
Looks good! Just some minor comments
Signed-off-by: Adam Li <[email protected]>
Addressed comments, I will let you merge if happy @bloebp |
Towards #5
Changes proposed in this pull request: