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

[Question] why is dense size = Classification category +1? (in classification task) #21

Closed
melansediao opened this issue Feb 22, 2019 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@melansediao
Copy link

why is dense size = Classification category +1? (in classification task)
These two pictures below are from your blog:
https://eliyar.biz/nlp_chinese_text_classification_in_15mins/?nsukey=O%2BczPW172RmhIMqZT%2BfUlcATr6%2Ba8SX%2BJOwFmeqO7sK%2FDXKSkt%2BembEWvsivT76TbO5z7Dh02n%2BDux3v7PQgBZJl9fdsUl7aFAeUOQis%2BI0D6lpYW%2B9nAVUiSaAvf6mCvwDLx2a6%2Be5p4Up5QuSJ9UiCKek51b5HXyjbOPnZJMM%3D

image
image

@melansediao melansediao added the question Further information is requested label Feb 22, 2019
@BrikerMan
Copy link
Owner

Because I added "PAD": 0 to label2idx dict by default on both classification and labeling tasks, I think I should remove this feature from classification task. Then dense size will equel to classification category.

@melansediao
Copy link
Author

这个不影响训练吗?

@BrikerMan
Copy link
Owner

不影响,只是多了一个没有数据对应的分类。

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

No branches or pull requests

2 participants