I am trying to perform the automatic clustering with the UMAP. 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. i tried to run the code:
`hspace = {
"n_neighbors": hp.choice('n_neighbors', range(3,32)),
"n_components": hp.choice('n_components', range(3,32)),
"min_cluster_size": hp.choice('min_cluster_size', range(2,32)),
"random_state": 42
}
label_lower = 10
label_upper = 100
max_evals = 25 # change it to 50 or 100 for extra steps as wished.
import importlib
importlib.reload(utils)
%%time
from utils import *
best_params_use, best_clusters_use, trials_use = utils.bayesian_search(embeddings_st1,
space=hspace,
label_lower=label_lower,
label_upper=label_upper,
max_evals=max_evals)`
and the error I get is:
ValueError: <module 'random' from 'C:...anaconda3\lib\random.py'> cannot be used to seed a numpy.random.RandomState instance
Can someone please help me solve this problem, I tried to open the 'random" file and couldn't fix the problem.