ropensci-archive/umapr

umapr seed issue: cannot be used to seed a numpy.random.RandomState instance

mhimanshu11 opened this issue · 1 comments

Hi,

I am using the r wrapper function of UMAP, with all the requirements satisfied but unfortunately I cannot set the seed into the umapr function.
e.g. umapr::umap(iris[,1:4], n_neighbors = 5, random_state = 4), I always ran into the following error

Error in py_call_impl(callable, dots$args, dots$keywords) :
ValueError: 4.0 cannot be used to seed a numpy.random.RandomState instance

However, if I remove the random_state parameter, its working fine but not reproducible, could you please suggest what could be the reason behind it and any help in solving the error?

Thank you,
Himanshu