-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] dataloader optimization (picking up 1169) (#1224)
* ExperimentDataPipe: configurable array-conversion method `nd.array`, `scipy.coo`, `scipy.csr` * group chunks iff `shuffle_chunk_count > 1` * rm scipy.coo method * add `METHODS` constant * Use return_sparse_X instead of adding a method kwarg * Oops, one more thing * revert change to shuffle_chunk_count branch * mypy + linting fixes * Add test for bug I found * Fix bug, possibly speed up dataloaders * Remove unused (I think) branch * Remove more unused code * Slightly more precise typing * Reduce additional copies in _tables_to_np * Simplify branching in _ObsAndXSOMAIterator * typing fix * Revert "typing fix" This reverts commit 357582e. * Use more simplistic typing to avoid mypy + old python wrath --------- Co-authored-by: Ryan Williams <ryan.williams@tiledb.com>
- Loading branch information
1 parent
82a3f86
commit 473ba97
Showing
2 changed files
with
107 additions
and
31 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