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

utils.py [output_mode = regression] #34

Open
vr25 opened this issue Nov 21, 2019 · 3 comments
Open

utils.py [output_mode = regression] #34

vr25 opened this issue Nov 21, 2019 · 3 comments

Comments

@vr25
Copy link

vr25 commented Nov 21, 2019

Hi,

I am trying to predict a score (float) using regression and I was wondering what changes need to be made in lines 254 and 258 in utils.py

Thanks!

@vr25
Copy link
Author

vr25 commented Nov 21, 2019

Also, since it uses BinaryClassificationProcessor, it creates the logits tensor with size of [10,2] (say, my input file has 10 texts). After view(-1), logits becomes size=20 but the labels are still size=10. Hence, MSELoss() returns the following size mismatch error:

image

Thanks!

@ThilinaRajapakse
Copy link
Owner

Set this in the args dict.

'output_mode': 'regression'

@vr25
Copy link
Author

vr25 commented Nov 22, 2019

On setting:
'output_mode': 'regression'
it still gives the following error:

image

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

2 participants