alfiyahqthz commited on
Commit
12d49cf
·
verified ·
1 Parent(s): b671a85

Epoch 1 - Val Acc: 0.8855

Browse files
Files changed (4) hide show
  1. README.md +33 -0
  2. pytorch_model.bin +3 -0
  3. tokenizer.json +0 -0
  4. tokenizer_config.json +14 -0
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - mental-health
5
+ - depression
6
+ - anxiety
7
+ - stress
8
+ language: en
9
+ ---
10
+
11
+ # Mental Health Multiclass Classification
12
+
13
+ Fine-tuned for Depression/Anxiety/Stress classification.
14
+
15
+ ## Performance
16
+ - Validation Loss: 0.5120
17
+ - Validation Accuracy: 0.8855
18
+ - F1 (Macro): 0.8541
19
+
20
+ ## Usage
21
+ ```python
22
+ import torch
23
+ from transformers import AutoTokenizer
24
+
25
+ model = torch.load("pytorch_model.bin")
26
+ tokenizer = AutoTokenizer.from_pretrained("alfiyahqthz/bert-multiclass-das")
27
+
28
+ text = "I feel depressed"
29
+ inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
30
+ logits = model(inputs['input_ids'], inputs['attention_mask'])
31
+ prediction = logits.argmax(dim=1).item()
32
+ # 0=Depression, 1=Anxiety, 2=Stress
33
+ ```
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c7f780c5f1ded4de62a6744753910f6625f0404011e3b7545a2343a5f9cdb9b
3
+ size 438804815
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }