umap
umap copied to clipboard
Type Error
hello,
I am trying to run this algorithm on my dataset but I am getting this TypeError.
TypeError Traceback (most recent call last)
TypeError: simplicial_set_embedding() missing 2 required positional arguments: 'densmap_kwds' and 'output_dens'
The newer code has some extra parameters to that function (which is largely an internal function). On the plus side you should now be able to do something like
combined = fit1 * fit2
to get the same result as what you seem to be hand coding there.
@lmcinnes Could you elaborate on how to how to use new combined fits?
To everyone else reading this: the two new parameters should be filled by respectively "{}" and "False"
I believe you should be able to see more details on the combined fits in the documentation: https://umap-learn.readthedocs.io/en/latest/composing_models.html
@lmcinnes thank you. Sorry for RTFM issu...
Also as a consequence when plotting the scatter map the result has to be converted to an array and the first index should be plotted:
Ex: plt.scatter(*np.array(embedding)[0].T, s=2, cmap='Spectral', alpha=1.0)
I passed the following arguments. Might not be the right thing to do, but it got the job done: (..., densmap_kwds = {}, output_dens = False)