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

what does the weight_loss mean in loss function? #52

Open
ZhouJiaHuan opened this issue Mar 30, 2018 · 2 comments
Open

what does the weight_loss mean in loss function? #52

ZhouJiaHuan opened this issue Mar 30, 2018 · 2 comments

Comments

@ZhouJiaHuan
Copy link

No description provided.

@ZhouJiaHuan ZhouJiaHuan changed the title what is the weight_loss means in loss function? what does the weight_loss mean in loss function? Mar 30, 2018
@contactmat85
Copy link

I didn't understand it neither

@mangwaier
Copy link

  weight_decay = tf.multiply(tf.nn.l2_loss(var), wd, name='weight_loss')
  tf.add_to_collection('losses', weight_decay)

As the code say, there is a weight decay based on L2.

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

3 participants