Text Classification
Transformers
PyTorch
TensorBoard
distilbert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use BaxterAI/finetuning-sentiment-model-3000-samples with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BaxterAI/finetuning-sentiment-model-3000-samples with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="BaxterAI/finetuning-sentiment-model-3000-samples")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("BaxterAI/finetuning-sentiment-model-3000-samples") model = AutoModelForSequenceClassification.from_pretrained("BaxterAI/finetuning-sentiment-model-3000-samples", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
|
@@ -20,10 +20,10 @@ model-index:
|
|
| 20 |
metrics:
|
| 21 |
- name: Accuracy
|
| 22 |
type: accuracy
|
| 23 |
-
value: 0.
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -31,11 +31,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 31 |
|
| 32 |
# finetuning-sentiment-model-3000-samples
|
| 33 |
|
| 34 |
-
This model is a fine-tuned version of [
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss: 0.
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
-
- F1: 0.
|
| 39 |
|
| 40 |
## Model description
|
| 41 |
|
|
@@ -54,13 +54,13 @@ More information needed
|
|
| 54 |
### Training hyperparameters
|
| 55 |
|
| 56 |
The following hyperparameters were used during training:
|
| 57 |
-
- learning_rate:
|
| 58 |
- train_batch_size: 16
|
| 59 |
- eval_batch_size: 16
|
| 60 |
- seed: 42
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
-
- num_epochs:
|
| 64 |
|
| 65 |
### Training results
|
| 66 |
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
|
|
|
| 20 |
metrics:
|
| 21 |
- name: Accuracy
|
| 22 |
type: accuracy
|
| 23 |
+
value: 0.9133333333333333
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.9144736842105262
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 31 |
|
| 32 |
# finetuning-sentiment-model-3000-samples
|
| 33 |
|
| 34 |
+
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the imdb dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.4325
|
| 37 |
+
- Accuracy: 0.9133
|
| 38 |
+
- F1: 0.9145
|
| 39 |
|
| 40 |
## Model description
|
| 41 |
|
|
|
|
| 54 |
### Training hyperparameters
|
| 55 |
|
| 56 |
The following hyperparameters were used during training:
|
| 57 |
+
- learning_rate: 8e-05
|
| 58 |
- train_batch_size: 16
|
| 59 |
- eval_batch_size: 16
|
| 60 |
- seed: 42
|
| 61 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
- lr_scheduler_type: linear
|
| 63 |
+
- num_epochs: 6
|
| 64 |
|
| 65 |
### Training results
|
| 66 |
|