MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / _load_test_indices

Function _load_test_indices

deeplabcut/benchmark/metrics.py:256–260  ·  view source on GitHub ↗

Returns the indices of test images in the training dataset dataframe.

(shuffle_metadata_path: str)

Source from the content-addressed store, hash-verified

254
255
256def _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))

Callers 3

calc_map_from_objFunction · 0.85
calc_rmse_from_objFunction · 0.85
load_test_imagesFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected