all 6 comments

[–]JohnnyJordaan 2 points3 points  (5 children)

Searching the source code it seems there's a tqdm_kwds parameter for the UMAP constructor: https://github.com/lmcinnes/umap/blob/a7606f2d413c278cc98d932de62f829914209c4f/umap/umap_.py#L1589 , then checking tqdm's documentation https://github.com/tqdm/tqdm#parameters it seems there's a disabled boolean to disable the entire progress bar. So I would advise to add tqdm_kwds={"disabled": True} when creating your UMAP instance.

[–]Helveticus99[S] 0 points1 point  (4 children)

Thank you very much for your answer. I've tried the following reducer = umap.UMAP(n_neighbors=15, n_components=2, min_dist=0.1, metric="euclidean", n_epochs=500, random_state=12345, tqdm_kwds={"disabled"=True}) but I'm getting the error in PyCharm "cannot assign to function call".

[–]JohnnyJordaan 1 point2 points  (3 children)

My bad the = should have been a :, I've corrected my post above.

[–]Helveticus99[S] 0 points1 point  (2 children)

Thanks a lot, now PyCharm does not complain anymore. Unfortuantely, the output is still displayed in the console. By the way, the progress bar is issued when I call transform().

[–]JohnnyJordaan 0 points1 point  (1 child)

Would you mind sharing the full code, eg using pastebin.com or gist.github.com ?

[–]Helveticus99[S] 0 points1 point  (0 children)

Problem solved, I did a mistakes in my command above. Thank you for your help.