Spaces:
Sleeping
Sleeping
Removed random state from umap
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def load_data():
|
|
23 |
# Function to reduce dimensions and cache the results
|
24 |
@st.cache_data
|
25 |
def reduce_dimensions(data, n_components, n_neighbors, min_dist):
|
26 |
-
reducer = umap.UMAP(n_components=n_components, n_neighbors=n_neighbors, min_dist=min_dist
|
27 |
return reducer.fit_transform(data)
|
28 |
|
29 |
# Function to perform and cache HDBSCAN clustering
|
|
|
23 |
# Function to reduce dimensions and cache the results
|
24 |
@st.cache_data
|
25 |
def reduce_dimensions(data, n_components, n_neighbors, min_dist):
|
26 |
+
reducer = umap.UMAP(n_components=n_components, n_neighbors=n_neighbors, min_dist=min_dist)
|
27 |
return reducer.fit_transform(data)
|
28 |
|
29 |
# Function to perform and cache HDBSCAN clustering
|