tsne_plot
Visualizes high-dimensional data in 2D using t-SNE to reveal clusters and local structure. Automatically standardizes features; suited for datasets under 10,000 rows.
Instructions
t-SNE visualization. Non-linear dimensionality reduction for 2D visualization. Better than PCA for revealing clusters and local structure. Features are auto-standardized. Slower than PCA — best on datasets < 10,000 rows or use sample_data first. Example: tsne_plot(columns=["Revenue","Weight","Pieces"], perplexity=30, hue="CargoType")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | ||
| columns | Yes | ||
| df_name | No | ||
| save_path | No | ||
| perplexity | No | ||
| n_components | No | ||
| random_state | No |