python : added comment for potential indices in unit test

This commit is contained in:
saundersp 2024-04-28 00:26:31 +02:00
parent 434ce20374
commit f7ac38b93a

View File

@ -60,11 +60,13 @@ def unit_test(TS: List[int], labels: List[str] = ['CPU', 'GPU', 'PY', 'PGPU'], t
title = f'X_{set_name}_feat_argsort' title = f'X_{set_name}_feat_argsort'
print(f'Loading {title}...', file = stderr, end = '\r') print(f'Loading {title}...', file = stderr, end = '\r')
feat = None feat = None
#indices = pickle_multi_loader(['indices'], OUT_DIR)[0]
bs = [] bs = []
for label in labels: for label in labels:
if feat is None: if feat is None:
feat_tmp = pickle_multi_loader([f'X_{set_name}_feat_{label}'], OUT_DIR)[0] feat_tmp = pickle_multi_loader([f'X_{set_name}_feat_{label}'], OUT_DIR)[0]
if feat_tmp is not None: if feat_tmp is not None:
#feat = feat_tmp[indices]
feat = feat_tmp feat = feat_tmp
bs.append(pickle_multi_loader([f'{title}_{label}'], OUT_DIR)[0]) bs.append(pickle_multi_loader([f'{title}_{label}'], OUT_DIR)[0])