stanfordnlp/imdb
Viewer • Updated • 100k • 234k • 374
How to use mvonwyl/distilbert-base-uncased-imdb with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="mvonwyl/distilbert-base-uncased-imdb") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mvonwyl/distilbert-base-uncased-imdb")
model = AutoModelForSequenceClassification.from_pretrained("mvonwyl/distilbert-base-uncased-imdb")This model is a fine-tuned version of distilbert-base-uncased on an imdb dataset where an evaluation of 5000 samples was created by splitting the training set. It achieves the following results on the evaluation set:
More information needed
This model was trained for the introduction to Natural language processing course of EPITA.
The training/evaluation split was generated using a seed of 42 and a test_size of 0.2.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2875 | 1.0 | 625 | 0.2286 | 0.9102 |
| 0.1685 | 2.0 | 1250 | 0.2416 | 0.9128 |
| 0.1171 | 3.0 | 1875 | 0.3223 | 0.917 |
| 0.0493 | 4.0 | 2500 | 0.3667 | 0.9162 |
| 0.023 | 5.0 | 3125 | 0.4074 | 0.92 |
| 0.015 | 6.0 | 3750 | 0.4291 | 0.9236 |
| 0.0129 | 7.0 | 4375 | 0.5452 | 0.9194 |
| 0.0051 | 8.0 | 5000 | 0.5886 | 0.9146 |
| 0.0027 | 9.0 | 5625 | 0.6310 | 0.9186 |
| 0.002 | 10.0 | 6250 | 0.6252 | 0.9214 |
Base model
distilbert/distilbert-base-uncased