-
Notifications
You must be signed in to change notification settings - Fork 3
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
Estimator return types #264
Merged
Merged
Changes from 34 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0eefd4b
Patsy interaction treatment terms can now be read
jmafoster1 c255ce0
refactor estimate_coefficent to only return pd.Series
christopher-wild 4736391
Adapt unit tests to access series values for coefficents
christopher-wild 1eac357
Fetch factors from Patsy to check types
christopher-wild f616091
Return float rather than Series for ci_high and ci_low
christopher-wild 1e8ad89
Handle float and series confidence intervals
christopher-wild abe8599
Handle correct exception
christopher-wild 767e5b4
More flexible handling due to multiple float types returns by estimators
christopher-wild 2724d94
Handle series values
christopher-wild da87421
Linting
christopher-wild aca8bf9
Merge branch 'main' into interaction-terms
christopher-wild ea8c273
refactor all estimate_* return types to be pd.Series for LinearRegres…
christopher-wild c777503
Update return typings
christopher-wild fd7f79d
Refactor other estimator classes to return pd.Series
christopher-wild 8f9499d
Extract bool from series
christopher-wild 3bcefc7
Remove gen expression so elements can be indexed
christopher-wild e43bf38
All effects now expect pd.Series for the test values
christopher-wild ace2612
Update all unit tests to work with pd.Series refactor
christopher-wild c942537
Merge remote-tracking branch 'origin/interaction-terms' into interact…
christopher-wild 18883d8
example_poisson_process.py now works with pd.Series refactor
christopher-wild 8590dc9
Update typing
christopher-wild 8e33b25
Update tests to use pd.Series for confidence intervals
christopher-wild 9641319
Dictionary assertions use list CIs
christopher-wild 35bae1f
SomeEffect and NoneEffect applys now work with pd.Series
christopher-wild 6a5987a
_get_confidence_intervals method returns pd.Series
christopher-wild d0322ed
Merge branch 'main' into interaction-terms
christopher-wild 33e7e53
Remove unnecessary unpacking of value
christopher-wild 123d4db
tests represent the logic of returning Series better
christopher-wild 17b8692
Pylint suggestions
christopher-wild 4e06f34
Update surrogate code for new series return vals
rsomers1998 f66f854
Merge branch 'interaction-terms' of https://github.com/CITCOM-project…
rsomers1998 d742f74
Remove unused import
christopher-wild 425329b
Update LR91 examples
christopher-wild c026f6a
Update example_beta.py
christopher-wild eb6bca6
Raise exception for Positive and Negative effect if multiple values p…
christopher-wild 5265e9f
Fix typo in check for value length
christopher-wild fb287ec
Add test for catching multiple value exception
christopher-wild 844849a
Use pandas inbuilt assert_series_equal test instead of casting everyt…
christopher-wild 6029edb
Add limitation of single test_value to Effect docstrings
christopher-wild b8ad419
Ensure only single ate values are provided in surrogate_models
christopher-wild File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'm a little worried about the scalability of this as it will only work for float values. If you have categorical data types, this will reduce to a binary treatment between the first and second values in alphabetical order. If you really want to only support float values for this, it would be good to have an explicit check for this to make sure that the user is getting what they expect to get.