KEMBAR78
Fix the documentation for BCEWithLogitsLoss (#17218, #16804) by velikodniy · Pull Request #19212 · pytorch/pytorch · GitHub
Skip to content

Conversation

@velikodniy
Copy link
Contributor

I fixed a mistake in the explanation of pos_weight argument in BCEWithLogitsLoss and added an example.

@velikodniy
Copy link
Contributor Author

Related issues: #17218, #16804

:math:`c = 1` for single-label binary classification),
:math:`n` is the number of the sample in the batch and
:math:`p_c` is the weight of the positive answer for the class :math:`c`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails lint

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in 7a41896.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
…6804) (pytorch#19212)

Summary:
I fixed a mistake in the explanation of `pos_weight` argument in `BCEWithLogitsLoss` and added an example.
Pull Request resolved: pytorch#19212

Differential Revision: D14923431

Pulled By: ezyang

fbshipit-source-id: 15696c67d56789102ac72afbe9bdd7b667eae5a0
@velikodniy velikodniy deleted the fix_bcewithlogitsloss_docs branch June 20, 2019 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants