Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法绘制正确的散点图,请求发布完整的代码 #7

Closed
jkup64 opened this issue Apr 21, 2023 · 4 comments
Closed

无法绘制正确的散点图,请求发布完整的代码 #7

jkup64 opened this issue Apr 21, 2023 · 4 comments

Comments

@jkup64
Copy link

jkup64 commented Apr 21, 2023

您好,我对您的研究很感兴趣,但我在复现的过程中遇到了一些问题:
fit_model.py中的命令行参数设置存在语法问题:

p.add_argument('--binary',
                   help='Perform binary or muticlass task',
                   #action='store_true',
                   type=bool,
                   default=True)

对于bool类型参数设置,无法怎么设置binary都是True,这是很基础的语法问题。
此外,我修改后模型的多分类任务上准确率能够达到98.45%,各个类别得分正常,但是绘制的散点图没有visualization.ipynb中的效果,我恳请您能提供一份完整的最终代码,我的邮箱为919863493@qq.com,谢谢。
image

@Fabiabn
Copy link

Fabiabn commented Jun 11, 2023

你好 visualization.ipynb中的UNSW-NB15的test与 emb.npy文件从何来

@George730
Copy link
Owner

Thanks for pointing out the issue in argparser.

For visualization, I guess there are few you can try:

  • you need to use more data points (I used 5000 points).
  • use t-SNE instead of PCA
  • use the features from the last second layer, which is right before fully connection, for visualization

@jkup64 jkup64 closed this as completed Aug 1, 2023
@lhr42
Copy link

lhr42 commented May 3, 2024

你好 visualization.ipynb中的UNSW-NB15的test与 emb.npy文件从何来

您好,请问您解决了吗?

@jkup64
Copy link
Author

jkup64 commented May 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants