-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scikit-learn 0.23 + pandas 1.0 compatibility issues (#66)
* add test fails TruncatedSVD with mixture of int, float sparse Serie * add failing test sklearn KMeans seed doesn't work * add test conversion DataFrame to Numpy when mixtype sparse int/float * remove deprecated args * remove sparsity using function instead of using .values * change name calinski_harabaz_score -> calinski_harabasz_score * add 'remove_sparse_serie' into wrapper argument to force the removal of sparse * fix n_init to force non random behavior * remove deprecated attribut * remove too specific test (value depends on sklearn version) * clean up old code * Update pythonapp.yml * add kmeans_other_params in KMeansTransformer * fix n_init = 1 (no make KMeans deterministic) * allow small difference with fit_transform and transform for KMeansTransformer * split test errror truncatedsvd, keep sklearn test as 'expected fail' * add 'reason' argument * Deactivate SparseDataFrame tests for pandas<1 * Deactivate tests on sparse data frames if pandas<1 * Skip sparse data frame tests if pandas<1 Deactivate test_TruncatedSVDWrapperSparseData_wrapper test Co-authored-by: Guillaume Fournier <[email protected]>
- Loading branch information
1 parent
4f489bc
commit 1b82e8d
Showing
20 changed files
with
186 additions
and
250 deletions.
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.