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

关于是否能输出分类匹配后的标签 #144

Open
yjy4201227 opened this issue May 19, 2023 · 2 comments
Open

关于是否能输出分类匹配后的标签 #144

yjy4201227 opened this issue May 19, 2023 · 2 comments

Comments

@yjy4201227
Copy link

您好!再次打扰您!之前跑通代码后得到的是
R8:
Test set results: cost= 0.11023 accuracy= 0.97168 time= 1.06711
15362
Test Precision, Recall and F1-Score...

现在我想问一下是如何得到论文中表格展示的**“20NG中几个类别最高值的单词。使用第二层词嵌入。为每个类别展示前10个单词”**
中途是否有分类标签输出展示每个测试集是否匹配呢

谢谢您!

@yao8839836
Copy link
Owner

@yjy4201227

训练的时候,把train.py这里的0,改成1, 可以得到第二层所有节点的embedding:

outs = sess.run([model.opt_op, model.loss, model.accuracy,
model.layers[0].embedding], feed_dict=feed_dict)

这个embedding跟labels的维度是一样的,对应关系build_graph.py里面有

@yjy4201227
Copy link
Author

@yjy4201227

训练的时候,把train.py这里的0,改成1, 可以得到第二层所有节点的embedding:

outs = sess.run([model.opt_op, model.loss, model.accuracy, model.layers[0].embedding], feed_dict=feed_dict)

这个embedding跟labels的维度是一样的,对应关系build_graph.py里面有

好的谢谢您!我后面自己修改运行一下!

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

2 participants