de-Rodrigo commited on
Commit
f5e34b2
·
1 Parent(s): 09fb498

Back to DIm Values that Allow for Visualization

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -12,8 +12,7 @@ import io
12
  import ot
13
  from sklearn.linear_model import LinearRegression
14
 
15
- # Usaremos 4 componentes para el embedding
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=3, random_state=42,
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