Spaces:
Running
Running
Commit
·
f5e34b2
1
Parent(s):
09fb498
Back to DIm Values that Allow for Visualization
Browse files
app.py
CHANGED
|
@@ -12,8 +12,7 @@ import io
|
|
| 12 |
import ot
|
| 13 |
from sklearn.linear_model import LinearRegression
|
| 14 |
|
| 15 |
-
|
| 16 |
-
N_COMPONENTS = 100
|
| 17 |
TSNE_NEIGHBOURS = 150
|
| 18 |
|
| 19 |
TOOLTIPS = """
|
|
@@ -358,7 +357,7 @@ def compute_global_regression(df_combined, embedding_cols, tsne_params, df_f1, r
|
|
| 358 |
if reduction_method == "PCA":
|
| 359 |
reducer = PCA(n_components=N_COMPONENTS)
|
| 360 |
else:
|
| 361 |
-
reducer = TSNE(n_components=
|
| 362 |
perplexity=tsne_params["perplexity"],
|
| 363 |
learning_rate=tsne_params["learning_rate"])
|
| 364 |
|
|
|
|
| 12 |
import ot
|
| 13 |
from sklearn.linear_model import LinearRegression
|
| 14 |
|
| 15 |
+
N_COMPONENTS = 2
|
|
|
|
| 16 |
TSNE_NEIGHBOURS = 150
|
| 17 |
|
| 18 |
TOOLTIPS = """
|
|
|
|
| 357 |
if reduction_method == "PCA":
|
| 358 |
reducer = PCA(n_components=N_COMPONENTS)
|
| 359 |
else:
|
| 360 |
+
reducer = TSNE(n_components=2, random_state=42,
|
| 361 |
perplexity=tsne_params["perplexity"],
|
| 362 |
learning_rate=tsne_params["learning_rate"])
|
| 363 |
|