Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix label_weights in DocModel #1081

Closed
wants to merge 1 commit into from

Conversation

anchit
Copy link
Contributor

@anchit anchit commented Oct 28, 2019

Summary: While playing around with the label_weights for OOD found a bug in the way the loss is constructed for the DocModel class resulting in the label_weights not being passed to the loss constructor. Verified in a bento that the trained model had empty label_weights in the loss. This fixes the bug and properly passes the weights to the constructor

Differential Revision: D18176357

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 28, 2019
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18176357

Summary:
Pull Request resolved: facebookresearch#1081

While playing around with the label_weights for OOD found a bug in the way the loss is constructed for the DocModel class resulting in the label_weights not being passed to the loss constructor. Verified in a bento that the trained model had empty label_weights in the loss. This fixes the bug and properly passes the weights to the constructor

Differential Revision: D18176357

fbshipit-source-id: ed2bfd986566db696903d458513d63445863e5d9
anchit added a commit to anchit/pytext that referenced this pull request Oct 30, 2019
Summary:
Pull Request resolved: facebookresearch#1081

While playing around with the label_weights for OOD found a bug in the way the loss is constructed for the DocModel class resulting in the label_weights not being passed to the loss constructor. Verified in a bento that the trained model had empty label_weights in the loss. This fixes the bug and properly passes the weights to the constructor

Differential Revision: D18176357

fbshipit-source-id: 238d04db7bca7d245309364a6449c115358499ea
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18176357

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18176357

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3b74ab3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants