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

Add multi-class, multi-label and regression to transformers #11012

Merged
merged 23 commits into from
May 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
quality
abhishekkrthakur committed May 3, 2021
commit 4729da470efdd1cbbe966d6b5eb49c1a77bb0e9f
10 changes: 4 additions & 6 deletions src/transformers/configuration_utils.py
Original file line number Diff line number Diff line change
@@ -165,14 +165,12 @@ class PretrainedConfig(PushToHubMixin):
current task.
- **problem_type** (:obj:`str`, `optional`) -- Problem type for :obj:`XxxForSequenceClassification` models. Can
be one of (:obj:`"regression"`, :obj:`"single_label_classification"`, :obj:`"multi_label_classification"`).
Please note that this parameter is only available in the following models:
`AlbertForSequenceClassification`, `BertForSequenceClassification`, `BigBirdForSequenceClassification`,
`ConvBertForSequenceClassification`, `DistilBertForSequenceClassification`,
`ElectraForSequenceClassification`, `FunnelForSequenceClassification`,
Please note that this parameter is only available in the following models: `AlbertForSequenceClassification`,
`BertForSequenceClassification`, `BigBirdForSequenceClassification`, `ConvBertForSequenceClassification`,
`DistilBertForSequenceClassification`, `ElectraForSequenceClassification`, `FunnelForSequenceClassification`,
`LongformerForSequenceClassification`, `MobileBertForSequenceClassification`,
`ReformerForSequenceClassification`, `RobertaForSequenceClassification`,
`SqueezeBertForSequenceClassification`, `XLMForSequenceClassification` and
`XLNetForSequenceClassification`.
`SqueezeBertForSequenceClassification`, `XLMForSequenceClassification` and `XLNetForSequenceClassification`.

Parameters linked to the tokenizer