Open SleepyMorpheus opened 6 months ago
Hi, I get the same warning. Any ideas on resolving it?
i met this problem in my project recently and the warning's exactly the same: n_jobs value 1 overridden to 1 issue #1081 seems to resolve this! try this
a = umap.UMAP(random_state=42, n_jobs=1, n_neighbors=2, n_components=2).fit_transform(din)
it runs with no warning but i don't really understand why... n_jobs value 1 overridden to 1? so the warning means that the default njobs has some problems, the original value 1 had a wrong class or something? search the warning in the original [code link](https://github.com/lmcinnes/umap/blob/master/umap/umap.py) and it says
if self.n_jobs != 1 and self.random_state is not None:
self.n_jobs = 1
warn(f"n_jobs value {self.n_jobs} overridden to 1 by setting random_state. Use no seed for parallelism.")
the warning changed the problem parameter before reporting it...
then i wonder how it set the default value, and i find n_jobs=-1
in initial function, and nowhere tend to change it
after all i find it interesting, i'm having a look at the umap paper 2018 densMAP paper 2021
Hello everybody, While adding some tests to a project of mine, I noticed some really weird behaviour. Two different instances initialised with the same parameters (including
random_state
) output a different result forfit_transform
during an execution. But when running the program again, the output does not change.Am I missing something obvious? Or has anybody an idea why this is happening. Thanks for looking into it.
Reproduction Steps
with the output being:
Versions
Note that umap is directly installed from github but behaviour stays the same if installed via pypi.