This is my code. I keep getting an error which tells me i cannot load set_parallel_chunksize:
import umap.umap_ as umap
from sklearn.mixture import GaussianMixture
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
from sklearn.metrics.pairwise import euclidean_distances
import warnings
warnings.filterwarnings('ignore')
# Get list of numeric columns
numeric_cols = data.select_dtypes(include=['float64', 'int64']).columns
# Set default columns to be pre-selected in the multiselect menu
default_cols = ['Minutes_played']
# Create multiselect menu to select features
selected_cols = st.multiselect('Select columns to use as features', numeric_cols, default=default_cols)
# Create a list of selected columns in the specified format
features = list(data[selected_cols])
### APPLY MODEL ###
#Standardize the data
X = data[features]
z = StandardScaler()
X[features] = z.fit_transform(X)
#Reduce the size of the features to 2 components using UMAP
fit = umap.UMAP(n_components=2,random_state=42)
u = fit.fit_transform(X)
I keep getting this error:
ImportError: cannot import name 'set_parallel_chunksize' from 'numba.np.ufunc' (/Users/omar/opt/anaconda3/lib/python3.9/site-packages/numba/np/ufunc/__init__.py)
I'm on a mac and already tried
pip uninstall umap
pip install umap-learn
Any clue what the issue might be?