End of training
Browse files
README.md
CHANGED
|
@@ -1,98 +1,71 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
| 4 |
-
|
| 5 |
tags:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
-
|
| 25 |
-
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
| 60 |
-
|
| 61 |
-
|
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
**Potential fix:** "<e.g., add more injury/neutral-negative examples; reweight class; augment with negation patterns>"
|
| 71 |
-
|
| 72 |
-
2. **Text:** "<paste misclassified sentence #2>"
|
| 73 |
-
**True:** 1 (positive) • **Pred:** 0 (negative)
|
| 74 |
-
**Why it failed (hypothesis):** "<e.g., sarcasm or mixed sentiment>"
|
| 75 |
-
**Potential fix:** "<e.g., include sarcastic examples; leverage larger model or polarity lexicon features>"
|
| 76 |
-
|
| 77 |
-
3. **Text:** "<paste misclassified sentence #3>"
|
| 78 |
-
**True:** <0/1> • **Pred:** <1/0>
|
| 79 |
-
**Why it failed (hypothesis):** "<e.g., domain shift, team/league slang>"
|
| 80 |
-
**Potential fix:** "<e.g., add domain-specific samples; modest LR warmup or longer training>"
|
| 81 |
-
|
| 82 |
-
## Limitations & Ethics
|
| 83 |
-
- Dataset size and labeling style can lead to unstable metrics; neutral/ambiguous tone is hard.
|
| 84 |
-
- Sports injury and team-management news may bias wording and labels.
|
| 85 |
-
- For coursework only; not for production or sensitive decisions.
|
| 86 |
-
|
| 87 |
-
## Reproducibility
|
| 88 |
-
- Python: 3.12
|
| 89 |
-
- Transformers: >=4.41
|
| 90 |
-
- Datasets: >=2.19
|
| 91 |
-
- Seed: 42
|
| 92 |
-
|
| 93 |
-
## License
|
| 94 |
-
- Code & weights: MIT (adjust per course guidelines)
|
| 95 |
-
- Dataset: see the original dataset's license/terms
|
| 96 |
-
|
| 97 |
-
## AI Assistance Disclosure
|
| 98 |
-
- GenAI tools assisted with notebook structure and documentation; modeling choices and evaluation were implemented and verified by the author.
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: distilbert-base-uncased
|
| 5 |
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
- precision
|
| 10 |
+
- recall
|
| 11 |
+
- f1
|
| 12 |
+
model-index:
|
| 13 |
+
- name: Homework2_Finetuning
|
| 14 |
+
results: []
|
| 15 |
---
|
| 16 |
|
| 17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 18 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
+
|
| 20 |
+
# Homework2_Finetuning
|
| 21 |
+
|
| 22 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
|
| 23 |
+
It achieves the following results on the evaluation set:
|
| 24 |
+
- Loss: 0.0030
|
| 25 |
+
- Accuracy: 1.0
|
| 26 |
+
- Precision: 1.0
|
| 27 |
+
- Recall: 1.0
|
| 28 |
+
- F1: 1.0
|
| 29 |
+
|
| 30 |
+
## Model description
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Intended uses & limitations
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training and evaluation data
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Training procedure
|
| 43 |
+
|
| 44 |
+
### Training hyperparameters
|
| 45 |
+
|
| 46 |
+
The following hyperparameters were used during training:
|
| 47 |
+
- learning_rate: 3e-05
|
| 48 |
+
- train_batch_size: 16
|
| 49 |
+
- eval_batch_size: 16
|
| 50 |
+
- seed: 42
|
| 51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 52 |
+
- lr_scheduler_type: linear
|
| 53 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 54 |
+
- num_epochs: 5
|
| 55 |
+
|
| 56 |
+
### Training results
|
| 57 |
+
|
| 58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 60 |
+
| 0.1158 | 1.0 | 55 | 0.0315 | 0.9909 | 0.9821 | 1.0 | 0.9910 |
|
| 61 |
+
| 0.0043 | 2.0 | 110 | 0.0083 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 62 |
+
| 0.002 | 3.0 | 165 | 0.0017 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 63 |
+
| 0.0014 | 4.0 | 220 | 0.0012 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
### Framework versions
|
| 67 |
+
|
| 68 |
+
- Transformers 4.45.2
|
| 69 |
+
- Pytorch 2.8.0+cu126
|
| 70 |
+
- Datasets 2.21.0
|
| 71 |
+
- Tokenizers 0.20.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|