Text Classification
Transformers
PyTorch
TensorBoard
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use laihanel/sentiment-analysis_gwu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use laihanel/sentiment-analysis_gwu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="laihanel/sentiment-analysis_gwu")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("laihanel/sentiment-analysis_gwu") model = AutoModelForSequenceClassification.from_pretrained("laihanel/sentiment-analysis_gwu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
CHANGED
|
@@ -4,28 +4,9 @@ tags:
|
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
| 6 |
- imdb
|
| 7 |
-
metrics:
|
| 8 |
-
- accuracy
|
| 9 |
-
- f1
|
| 10 |
model-index:
|
| 11 |
- name: sentiment-analysis_gwu
|
| 12 |
-
results:
|
| 13 |
-
- task:
|
| 14 |
-
name: Text Classification
|
| 15 |
-
type: text-classification
|
| 16 |
-
dataset:
|
| 17 |
-
name: imdb
|
| 18 |
-
type: imdb
|
| 19 |
-
config: plain_text
|
| 20 |
-
split: train
|
| 21 |
-
args: plain_text
|
| 22 |
-
metrics:
|
| 23 |
-
- name: Accuracy
|
| 24 |
-
type: accuracy
|
| 25 |
-
value: 0.9286
|
| 26 |
-
- name: F1
|
| 27 |
-
type: f1
|
| 28 |
-
value: 0.9288702928870293
|
| 29 |
---
|
| 30 |
|
| 31 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -35,9 +16,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 35 |
|
| 36 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the imdb dataset.
|
| 37 |
It achieves the following results on the evaluation set:
|
| 38 |
-
-
|
| 39 |
-
-
|
| 40 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
## Model description
|
| 43 |
|
|
@@ -64,10 +49,6 @@ The following hyperparameters were used during training:
|
|
| 64 |
- lr_scheduler_type: linear
|
| 65 |
- num_epochs: 2
|
| 66 |
|
| 67 |
-
### Training results
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
### Framework versions
|
| 72 |
|
| 73 |
- Transformers 4.21.1
|
|
|
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
| 6 |
- imdb
|
|
|
|
|
|
|
|
|
|
| 7 |
model-index:
|
| 8 |
- name: sentiment-analysis_gwu
|
| 9 |
+
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the imdb dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- eval_loss: 0.6951
|
| 20 |
+
- eval_accuracy: 0.5047
|
| 21 |
+
- eval_f1: 0.0443
|
| 22 |
+
- eval_runtime: 881.9377
|
| 23 |
+
- eval_samples_per_second: 28.347
|
| 24 |
+
- eval_steps_per_second: 3.543
|
| 25 |
+
- step: 0
|
| 26 |
|
| 27 |
## Model description
|
| 28 |
|
|
|
|
| 49 |
- lr_scheduler_type: linear
|
| 50 |
- num_epochs: 2
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
### Framework versions
|
| 53 |
|
| 54 |
- Transformers 4.21.1
|