codelion commited on
Commit
4463d67
·
verified ·
1 Parent(s): c03d89f

Add content-moderation

Browse files
Files changed (4) hide show
  1. README.md +6 -7
  2. config.json +7 -9
  3. examples.json +0 -0
  4. model.safetensors +2 -2
README.md CHANGED
@@ -16,17 +16,16 @@ You can install it with `pip install adaptive-classifier`.
16
  ## Model Details
17
 
18
  - Base Model: answerdotai/ModernBERT-base
19
- - Number of Classes: 4
20
- - Total Examples: 376
21
  - Embedding Dimension: 768
22
 
23
  ## Class Distribution
24
 
25
  ```
26
- appropriate: 96 examples (25.5%)
27
- inappropriate: 96 examples (25.5%)
28
- needs_review: 96 examples (25.5%)
29
- toxic: 88 examples (23.4%)
30
  ```
31
 
32
  ## Usage
@@ -50,7 +49,7 @@ classifier.add_examples(texts, labels)
50
 
51
  ## Training Details
52
 
53
- - Training Steps: 12
54
  - Examples per Class: See distribution above
55
  - Prototype Memory: Active
56
  - Neural Adaptation: Active
 
16
  ## Model Details
17
 
18
  - Base Model: answerdotai/ModernBERT-base
19
+ - Number of Classes: 3
20
+ - Total Examples: 252
21
  - Embedding Dimension: 768
22
 
23
  ## Class Distribution
24
 
25
  ```
26
+ appropriate: 86 examples (34.1%)
27
+ inappropriate: 82 examples (32.5%)
28
+ spam: 84 examples (33.3%)
 
29
  ```
30
 
31
  ## Usage
 
49
 
50
  ## Training Details
51
 
52
+ - Training Steps: 8
53
  - Examples per Class: See distribution above
54
  - Prototype Memory: Active
55
  - Neural Adaptation: Active
config.json CHANGED
@@ -32,17 +32,15 @@
32
  },
33
  "embedding_dim": 768,
34
  "id_to_label": {
35
- "0": "toxic",
36
- "1": "inappropriate",
37
- "2": "needs_review",
38
- "3": "appropriate"
39
  },
40
  "label_to_id": {
41
- "appropriate": 3,
42
- "inappropriate": 1,
43
- "needs_review": 2,
44
- "toxic": 0
45
  },
46
  "model_name": "answerdotai/ModernBERT-base",
47
- "train_steps": 12
48
  }
 
32
  },
33
  "embedding_dim": 768,
34
  "id_to_label": {
35
+ "0": "appropriate",
36
+ "1": "spam",
37
+ "2": "inappropriate"
 
38
  },
39
  "label_to_id": {
40
+ "appropriate": 0,
41
+ "inappropriate": 2,
42
+ "spam": 1
 
43
  },
44
  "model_name": "answerdotai/ModernBERT-base",
45
+ "train_steps": 8
46
  }
examples.json CHANGED
The diff for this file is too large to render. See raw diff
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d4a5ccfef03c9952c3a40c83b1d9d37a4271ef8a24f9b69ec549a81f096de37
3
- size 3562912
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:135f1483ace80b2fe4f8f339df5e40104e934611e1043d814fe118283691aab7
3
+ size 3558212