Commit 710e3e2
Detector datasets splits (#103)
* Sort categories dict in loaded dataset by key
* Add types to licenses in COCO schema
* Add image width and height as required in COCO file (for consistency with schema)
* Convert to torch datasets
* Add examples infrastructure and proto example
* Add subsetsum notebook
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Dataset split with subset sum
* Add time estimate
* Draft detectors datasets module
* Split by video-pair
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update .gitignore for exampels
* Delete execution times file. Do not mock torch in docs build
* Add torch_dataset_to_annotations_dataset (WIP)
* Rename example
* Polish annotations as torch dataset example
* Select top 2 categories. Make sharp bits more explicit
* Simplify example. Add bbox conversion using torch utils
* Add note to example
* Use Counter rather than itertools (itertools counts consecutive instances). Use tolerance in number of samples. Use moren intuitive variable names. Sort by count if not shuffled
* Add dataset splits example (WIP)
* Rrename approximate_subset_sum to _approximate_subset_sum
* Define examples order in doc config
* Sort examples by filename
* Update example title
* Add loguru dependency and clean up Sphinx gallery configuration
* Improved approximate subset sum (WIP)
* Extend and filter list in one step
* Update example
* Refactor dataset splitting logic to handle empty subsets and maintain input order in return values.
* Updates to example
* Reduce example
* Move SubsetDict type definition
* Remove torch conversion bits. Rename examples and set order in docs config.
* Add some tests (WIP)
* More tests (WIP)
* Add docstring. Fix group ids as int
* Simplify casting group IDs as int
* Update docstring example
* Rename module. Update docstrings
* Add check and warning to random split. Return subsets in order of fractions. Rename input parameter
* Rename ds input parameter in saving function
* Expand tests
* Add test for warning
* Add pytest-loguru to development dependencies
* Review and small edits to coco_bbox_ethology_and_movement.py
* Edit example intro
* Add sklearn groupkfold version and preliminary tests
* Small edits to COCO example
* Refactor dataset splitting functions and update tests to use new names.
The functions `split_dataset_group_by_sklearn` and `split_dataset_group_by` have been renamed to `_split_dataset_group_by_kfold` and `_split_dataset_group_by_apss`, respectively. Corresponding test functions have also been updated to reflect these changes, and new tests for k-fold splitting with seed functionality have been added.
* Add docstring with examples
* Add wrapper function to split group by
* Fix tests
* Add test to check method dispatch
* Add test to check auto delegates correctly
* Add test for unknown method
* Fix docstring example
* Small edits to API
* Add logger info for method and test
* Fix movement link in docs
* Review example
* Fix movement link
* Fix movement link
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 67ff878 commit 710e3e2
File tree
10 files changed
+1924
-35
lines changed- docs/source
- ethology
- datasets
- io/annotations
- examples
- tests/test_unit/test_datasets
10 files changed
+1924
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
210 | 219 | | |
211 | 220 | | |
212 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
Whitespace-only changes.
0 commit comments