-
Notifications
You must be signed in to change notification settings - Fork 726
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
Enable Python 3.8 support #210
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
413b81f
Enable Python 3.8 support
kbattocchi b7c5982
Enable higher tensorflow and sklearn versions
kbattocchi 1e29f6d
Fix tests
kbattocchi 15604b0
Pin pandas to avoid dowhy issue
kbattocchi 5683e15
Temporarily disable autoML
kbattocchi 616b5bd
Fix sparse COO creation
kbattocchi 243c828
Update doctests
kbattocchi 853b5fc
Pin Sphinx to avoid docstring bug
kbattocchi 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -696,9 +696,7 @@ the case where this matrix has low rank: all the products can be embedded in som | |
space and the cross-price elasticities is a linear function of these low dimensional embeddings. This corresponds | ||
to well-studied latent factor models in pricing. Our framework can easily handle this by using | ||
a nuclear norm regularized multi-task regression in the final stage. For instance the | ||
lightning package implements such a class: | ||
|
||
.. testcode:: | ||
lightning package implements such a class:: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Released versions of lightning are currently not compatible with sklearn 0.23 (though this problem has been fixed in the lightning GitHub repo - see scikit-learn-contrib/lightning#142). We can revert this small change if there is a new PyPI release. |
||
|
||
from econml.dml import DMLCateEstimator | ||
from sklearn.preprocessing import PolynomialFeatures | ||
|
@@ -714,8 +712,3 @@ lightning package implements such a class: | |
te_pred = est.const_marginal_effect(np.median(X, axis=0, keepdims=True)) | ||
print(te_pred) | ||
print(np.linalg.svd(te_pred[0])) | ||
|
||
.. testoutput:: | ||
:hide: | ||
|
||
... |
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.
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.
Had to disable AutoML tests, because it seems like they were already broken by something changing server-side for AutoML and I couldn't figure out the necessary changes after a small amount of debugging. I've opened a new issue (#270) to fix this.