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

代码此处是否多加了个L2正则项 #8

Open
Ponytai1j opened this issue Dec 18, 2021 · 0 comments
Open

代码此处是否多加了个L2正则项 #8

Ponytai1j opened this issue Dec 18, 2021 · 0 comments

Comments

@Ponytai1j
Copy link

GCN.PY文件计算损失函数第81行
cost = tf.reduce_mean(cost) + reg * l2_loss
但是第77行已经加了L2正则项
cost = (tf.nn.softmax_cross_entropy_with_logits(logits = y_est, labels = y_re)) + reg * l2_loss

我想问下第81行是否可以去掉那个reg * l2_loss ?还是我的理解存在错误
thanks in advance

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

1 participant