-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Allow for appropriate dtype us in preprocessing.PolynomialFeatures
for sparse matrices
#23731
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
Merged
Merged
Changes from all commits
Commits
Show all changes
125 commits
Select commit
Hold shift + click to select a range
7eef7ad
[WIP] FIX index overflow error in sparse matrix polynomial expansion …
niuk-a 4adbf38
Merge branch 'main' into csr_polynomial
Micky774 baa98a2
Reconciled with main
Micky774 2b9187d
Merge branch 'main' of https://github.com/scikit-learn/scikit-learn i…
Micky774 55424a0
Merge branch 'main' into csr_polynomial
Micky774 69438dc
Removed extra `total_nnz` assignment
Micky774 9ecbf8a
Added fused type
Micky774 345e043
Added clarifying comment
Micky774 1d23b1d
Merge branch 'main' into csr_polynomial
Micky774 cc6a548
Added changelog entry
Micky774 8b189bb
Merge branch 'main' into csr_polynomial
Micky774 15b00fd
Fixed PR tag in changelog entry
Micky774 ee8a3ba
Apply suggestions from code review
Micky774 cd346f1
Merge branch 'main' into csr_polynomial
Micky774 0a17dee
Streamlined logic and improved tests
Micky774 b118a3c
Added test depending on scipy version
Micky774 fa1ecf2
Clarified breaking and renamed types
Micky774 d735c8f
Merge branch 'main' into csr_polynomial
Micky774 f3bb5cd
Merge branch 'main' into csr_polynomial
Micky774 0c9a563
Merge branch 'main' into csr_polynomial
Micky774 a006bf0
Merge branch 'main' into csr_polynomial
Micky774 96259d7
Apply suggestions from code review
Micky774 2e44f39
Merge branch 'main' into csr_polynomial
Micky774 377f6a9
Apply suggestions from code review
Micky774 8a77b66
Improved tests
Micky774 d2e6339
Merge branch 'csr_polynomial' of https://github.com/Micky774/scikit-l…
Micky774 c70c216
Merge branch 'main' into csr_polynomial
Micky774 a9d39a7
Initial addition -- fails with segfault
Micky774 e1262f9
Improved documentation
Micky774 5ee0d96
Added license information
Micky774 ceca8ed
Updated fused-type name to hopefully clarify purpose
Micky774 9bd99ca
Used vectors and updated implementation
Micky774 8943412
Removed accidentally-added file
Micky774 5be9a13
Simplified and cleaned up implementation
Micky774 27974ba
Slightly better formatting and variable name
Micky774 cec3005
Fixed dtype bug and added testing
Micky774 5116a1d
Merge branch 'main' into csr_polynomial
Micky774 764d8bd
Updated test to verify nnz count and indices
Micky774 102e2fa
Improved dtype resolution and clarified with comments
Micky774 8430c3f
Fixed inexact index error
Micky774 db78c7e
Updated formatting
Micky774 057a4f5
Cleaner diff and blame history
Micky774 23e9acf
Merge branch 'main' into csr_polynomial
Micky774 46745a8
Fixed overflow bug in expanded index calculation
Micky774 9ff8413
Fix intermediate calculation overflow and refactor tests
Micky774 5a221f2
Merge branch 'main' into csr_polynomial
Micky774 baea39e
Fixed duplicated changelog entries
Micky774 ff3d050
Merge branch 'main' into csr_polynomial
Micky774 54c7d2e
Apply suggestions from code review
Micky774 1c8a98b
Update comment for scipy min version (new backport)
Micky774 016ae5b
Removed vendored csr_hstack and instead error where appropriate
Micky774 0e14c8d
Merge branch 'main' into csr_polynomial
Micky774 a5c17dc
Updated error message
Micky774 34e7d2a
CLN Add authorship and delete cosmetic changes
Micky774 e82a9f9
Update sklearn/preprocessing/tests/test_polynomial.py
Micky774 0ef1b95
Revert
Micky774 0d7be70
Merge branch 'main' into csr_polynomial
Micky774 56e8c34
Moved calculation of number of non-zero elements to Cython
Micky774 ac07342
Merge branch 'main' into csr_polynomial
Micky774 c973d64
Addressed misc review feedback
Micky774 86da1a0
Merge branch 'main' into csr_polynomial
Micky774 4ac5deb
Added format specification
Micky774 ce2308b
Added explicit equation used to generate constants
Micky774 0543ccd
Merge branch 'main' into csr_polynomial
Micky774 a97c526
Improved documentation and introduced error
Micky774 391d049
Improved wording
Micky774 68615c8
Apply suggestions from code review
Micky774 66738fa
Merge branch 'main' into csr_polynomial
Micky774 e03f689
Overhauled tests
Micky774 c35cf2b
Improved cython routines adressed feedback
Micky774 447296b
Improved code organization
Micky774 9c93e46
Merge branch 'main' into csr_polynomial
Micky774 8809a94
Opted for explicit `cnp.*` typing for `DATA_t`
Micky774 b0c7bf5
Reverted extraneous change
Micky774 b13a13c
Adjusted tests for un-indexable values on 32bit systems
Micky774 4215b0b
Apply suggestions from code review
Micky774 e767c14
Merge branch 'main' into csr_polynomial
Micky774 1793791
Addressed Cython bug
Micky774 9144db7
Added documentation for secondary checks
Micky774 e14f3e4
Update sklearn/preprocessing/_csr_polynomial_expansion.pyx
Micky774 ec3e9ed
Formatting
Micky774 29a1cb8
Merge branch 'csr_polynomial' of https://github.com/Micky774/scikit-l…
Micky774 ddcc960
Merge branch 'main' into csr_polynomial
Micky774 56301a8
Update sklearn/preprocessing/_csr_polynomial_expansion.pyx
Micky774 209e511
Merge branch 'main' into csr_polynomial
Micky774 25b2f60
Factored equations to mitigate overflow risks
Micky774 b77f071
Merge branch 'main' into csr_polynomial
Micky774 9757640
Added `__int128` support when available
Micky774 0f96d48
Added back python computation for overflow protection
Micky774 6d1a9f1
Corrected for linux
Micky774 fa91e4e
Added support for CLANG and improved documentation
Micky774 3e9238a
Merge branch 'main' into csr_polynomial
Micky774 62d9979
Removed unreachable code
Micky774 39dab07
Slight change in equation form
Micky774 d8bdec3
Merge branch 'main' into csr_polynomial
Micky774 4eb98ca
Updated to include test to confirm expected integer width
Micky774 4195a4d
Updated fused types
Micky774 40cd06d
Updated typing
Micky774 f1dc6dc
Included feedback, and caught/handled old scipy bug
Micky774 51ea18c
Merge branch 'main' into csr_polynomial
Micky774 4189339
Apply suggestions from code review
Micky774 6d9f698
Fixed typo
Micky774 c06e26f
Merge branch 'main' into csr_polynomial
ogrisel e1a0725
Merge branch 'main' into csr_polynomial
ogrisel ca5c4d5
Update sklearn/preprocessing/_polynomial.py
Micky774 8e218d1
Merge branch 'main' into csr_polynomial
Micky774 2d2124d
Improved tests
Micky774 b00d149
Improved tests
Micky774 c16e33c
Clean paranthesis
Micky774 af934a8
Updated test to account for 32 bit systems
Micky774 c4eeb7c
Updated ValueError match string
Micky774 6576bdd
Fixed overflow bug in tests for Windows
Micky774 99eabab
Adopted review feedback
Micky774 9a90a59
Improved constant documentation
Micky774 9d9d21b
Improved variable names
Micky774 7ac1a41
Update sklearn/preprocessing/_polynomial.py
Micky774 1ebfbbe
Merge branch 'main' into csr_polynomial
Micky774 7756f62
Incorporated typedef changes
Micky774 6112cf8
Merge branch 'main' into csr_polynomial
Micky774 cf3c00c
Added check for 32bit-ness for clang
Micky774 810fb3b
Improved documentation
Micky774 ff36da1
Merge branch 'main' into csr_polynomial
Micky774 3033e4b
Merge branch 'main' into csr_polynomial
Micky774 ce6b72a
Updated for emscripten edge-case
Micky774 bcdee5d
Removed extraneous assertion
Micky774 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.