Returns the indices of test images in the training dataset dataframe.
(shuffle_metadata_path: str)
| 254 | |
| 255 | |
| 256 | def _load_test_indices(shuffle_metadata_path: str) -> list[int]: |
| 257 | """Returns the indices of test images in the training dataset dataframe.""" |
| 258 | with open(shuffle_metadata_path, "rb") as f: |
| 259 | test_indices = set([int(i) for i in pickle.load(f)[2]]) |
| 260 | return list(sorted(test_indices)) |
no test coverage detected