-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add CE to Sentiment #2777
Add CE to Sentiment #2777
Conversation
fix bug
dygraph/sentiment/nets.py
Outdated
fc_1 = self._fc1(conv_3) | ||
#print(fc_1.numpy().mean()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要的可以直接删掉
dygraph/sentiment/nets.py
Outdated
prediction = self._fc_prediction(fc_1) | ||
#print(prediction.numpy().mean()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要的可以直接删掉
dygraph/sentiment/_ce.py
Outdated
from __future__ import print_function | ||
import os | ||
import sys | ||
sys.path.append(os.environ['ceroot']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
移到所有import语句的后面比较好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ADD CE to Dygraph Sentiment model