You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for batch_indexes in tqdm(
np.array_split(all_indexes, num_batches),
desc="Creating Lower Dimensional Representation using UMAP",
total=num_batches,
):
# We flatten all dimensions of the input array except the dimension
# corresponding to batch elements. This ensures that all inputs to
# the UMAP algorithm are flattend per input item in the batch
batch = inference_results[batch_indexes].reshape(len(batch_indexes), -1)
batch_ids = all_ids[batch_indexes]
transformed_batch = reducer.transform(batch)
umap_results.write_batch(batch_ids, transformed_batch)
The tqdm implementation will also need to change to make sure it works properly in multiprocessing
The text was updated successfully, but these errors were encountered:
Generation of UMAP takes considerable amount of time given that it is not multithreaded.
Since this is trivially parallelizable, deploy multiprocessing on the following loop in https://github.com/lincc-frameworks/fibad/blob/main/src/fibad/verbs/umap.py
The
tqdm
implementation will also need to change to make sure it works properly in multiprocessingThe text was updated successfully, but these errors were encountered: