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

how to attack regression model like bert-stsb? #793

Open
TanXiang7o opened this issue Jun 22, 2024 · 1 comment
Open

how to attack regression model like bert-stsb? #793

TanXiang7o opened this issue Jun 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@TanXiang7o
Copy link

I run this textattack attack --recipe textfooler --model bert-base-uncased-stsb --num-examples 100
and in this function run error
image
image

@jxmorris12 jxmorris12 added the question Further information is requested label Jul 25, 2024
@jxmorris12
Copy link
Collaborator

I don't think your approach will work in the regression setting. You need to either convert things to a label (picking an arbitrary cutoff) or use an attack type that works on regression models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants