Spaces:
Sleeping
Sleeping
Update explanation
Browse files
app.py
CHANGED
|
@@ -79,10 +79,18 @@ def plot_data(dataset: str, perplexity: int, n_samples: int, tsne: bool):
|
|
| 79 |
|
| 80 |
|
| 81 |
title = "t-SNE: The effect of various perplexity values on the shape"
|
| 82 |
-
description =
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
with gr.Blocks(title=title) as demo:
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
title = "t-SNE: The effect of various perplexity values on the shape"
|
| 82 |
+
description = """
|
| 83 |
+
t-Stochastic Neighborhood Embedding ([t-SNE](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html)) is a powerful technique dimensionality reduction and visualization of high dimensional datasets.
|
| 84 |
+
|
| 85 |
+
One of the key parameters in t-SNE is perplexity, which controls the number of nearest neighbors used to represent each data point in the low-dimensional space.
|
| 86 |
+
|
| 87 |
+
In this illustration, we explore the impact of various perplexity values on t-SNE visualizations using three commonly used datasets: concentric circles, S-curve and Uniform Grid.
|
| 88 |
+
|
| 89 |
+
By comparing the resulting visualizations, we demonstrate how changing the perplexity value affects the shape of the visualization.
|
| 90 |
+
|
| 91 |
+
Created by [@Hnabil](https://huggingface.co/Hnabil) based on [scikit-learn docs](https://scikit-learn.org/stable/auto_examples/manifold/plot_t_sne_perplexity.html)
|
| 92 |
+
"""
|
| 93 |
+
|
| 94 |
|
| 95 |
|
| 96 |
with gr.Blocks(title=title) as demo:
|