Text Classification
Transformers
TensorBoard
Safetensors
bert
Generated from Trainer
text-embeddings-inference
Instructions to use mdosama39/malayalam-bert-FakeNews-Dravidian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mdosama39/malayalam-bert-FakeNews-Dravidian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mdosama39/malayalam-bert-FakeNews-Dravidian")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mdosama39/malayalam-bert-FakeNews-Dravidian") model = AutoModelForSequenceClassification.from_pretrained("mdosama39/malayalam-bert-FakeNews-Dravidian", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
base_model: l3cube-pune/malayalam-bert
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
model-index:
|
| 9 |
+
- name: malayalam-bert-FakeNews-Dravidian
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# malayalam-bert-FakeNews-Dravidian
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [l3cube-pune/malayalam-bert](https://huggingface.co/l3cube-pune/malayalam-bert) on the None dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.7928
|
| 21 |
+
- Accuracy: 0.7840
|
| 22 |
+
- Weighted f1 score: 0.7819
|
| 23 |
+
- Macro f1 score: 0.7818
|
| 24 |
+
|
| 25 |
+
## Model description
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Intended uses & limitations
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training and evaluation data
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training procedure
|
| 38 |
+
|
| 39 |
+
### Training hyperparameters
|
| 40 |
+
|
| 41 |
+
The following hyperparameters were used during training:
|
| 42 |
+
- learning_rate: 2e-06
|
| 43 |
+
- train_batch_size: 16
|
| 44 |
+
- eval_batch_size: 16
|
| 45 |
+
- seed: 42
|
| 46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 47 |
+
- lr_scheduler_type: linear
|
| 48 |
+
- num_epochs: 15
|
| 49 |
+
|
| 50 |
+
### Training results
|
| 51 |
+
|
| 52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Weighted f1 score | Macro f1 score |
|
| 53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------------:|:--------------:|
|
| 54 |
+
| 1.0681 | 1.0 | 204 | 1.0238 | 0.4982 | 0.3313 | 0.3325 |
|
| 55 |
+
| 1.0077 | 2.0 | 408 | 0.9829 | 0.5031 | 0.3421 | 0.3433 |
|
| 56 |
+
| 0.9738 | 3.0 | 612 | 0.9529 | 0.5877 | 0.5499 | 0.5503 |
|
| 57 |
+
| 0.946 | 4.0 | 816 | 0.9267 | 0.6466 | 0.6401 | 0.6399 |
|
| 58 |
+
| 0.9204 | 5.0 | 1020 | 0.9019 | 0.7006 | 0.6877 | 0.6875 |
|
| 59 |
+
| 0.8961 | 6.0 | 1224 | 0.8754 | 0.7644 | 0.7629 | 0.7628 |
|
| 60 |
+
| 0.8715 | 7.0 | 1428 | 0.8540 | 0.7607 | 0.7544 | 0.7543 |
|
| 61 |
+
| 0.8485 | 8.0 | 1632 | 0.8362 | 0.7828 | 0.7789 | 0.7788 |
|
| 62 |
+
| 0.8323 | 9.0 | 1836 | 0.8244 | 0.7791 | 0.7749 | 0.7748 |
|
| 63 |
+
| 0.8182 | 10.0 | 2040 | 0.8151 | 0.7816 | 0.7773 | 0.7772 |
|
| 64 |
+
| 0.8063 | 11.0 | 2244 | 0.8069 | 0.7816 | 0.7792 | 0.7791 |
|
| 65 |
+
| 0.7973 | 12.0 | 2448 | 0.8011 | 0.7828 | 0.7799 | 0.7798 |
|
| 66 |
+
| 0.791 | 13.0 | 2652 | 0.7950 | 0.7853 | 0.7840 | 0.7839 |
|
| 67 |
+
| 0.7857 | 14.0 | 2856 | 0.7939 | 0.7816 | 0.7793 | 0.7792 |
|
| 68 |
+
| 0.7826 | 15.0 | 3060 | 0.7928 | 0.7840 | 0.7819 | 0.7818 |
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### Framework versions
|
| 72 |
+
|
| 73 |
+
- Transformers 4.35.0
|
| 74 |
+
- Pytorch 2.0.0
|
| 75 |
+
- Datasets 2.11.0
|
| 76 |
+
- Tokenizers 0.14.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 950257668
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7dbbbc514901fab54f7de63fda212c15c115a000f439941ebe11981c584e0236
|
| 3 |
size 950257668
|
runs/Nov22_15-42-54_e52886de8137/events.out.tfevents.1700667788.e52886de8137.80.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb0e0311a4364e96c87df126efd76eaa542d8342b36a0dc3c6f3c8338d6c163e
|
| 3 |
+
size 13823
|