-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sort dataframe logic on qid (#239)
* add sort dataframe logic on qid for centralized * move sorting logic to _split_dataframe * Update xgboost_ray/matrix.py Co-authored-by: Antoni Baum <[email protected]> Signed-off-by: atomic <[email protected]> * refactor sorting logic to method * logic for more cases of qid type and add integration test - add logic to include more case of qid data type (array, dataframe) - add 2 integration tests to cover behavior for sorting qid * raise exception for the case when qid DataFrame is using unexpected shape * fix lint * more lint fix * add unittest skip for xgboost 0.9 * Apply suggestions from code review Signed-off-by: Antoni Baum <[email protected]> * Fix Signed-off-by: Antoni Baum <[email protected]> * Test tweak Signed-off-by: Antoni Baum <[email protected]> Signed-off-by: atomic <[email protected]> Signed-off-by: Antoni Baum <[email protected]> Co-authored-by: Antoni Baum <[email protected]>
- Loading branch information
Showing
2 changed files
with
84 additions
and
1 deletion.
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