TheAlgorithms / TheAlgorithms/Python

Feedback on t-SNE script: ideas to improve clarity and usability

未关闭
#13,513 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement
主要语言
Python
星标
225k
派生
51.1k
平均合并
1 天 23 小时
30 天内合并 PR
156

描述

Feature description

Hi! I tested your t_stochastic_neighbour_embedding.py script on my local setup and it runs well thanks for sharing it!

I have a few suggestions that might improve clarity and usability for others:

Visualization: Consider adding a matplotlib scatter plot to show the t-SNE result. It helps users see the clustering visually.

Reproducibility: Adding random_state=42 to the TSNE() constructor would make the output consistent across runs.

Parameter transparency: Explicitly setting perplexity, learning_rate, and n_iter could help learners understand how t-SNE behaves.

Import error handling: A simple try/except block for sklearn imports could guide users if they haven't installed the package.

Let me know if you'd like help implementing any of these — happy to collaborate!

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先阅读 t_stochastic_neighbour_embedding.py 以及当前对 TSNE 的使用方式。审查关于可视化、可复现性、参数和 import 处理的拟议更改,然后确认哪些建议属于范围之内。在选定的改进完成实现且脚本仍能按预期运行后,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
matplotlib, python, scikit-learn
领域
data-visualization, machine-learning
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。