SpiderHomie commited on
Commit
8ce0645
·
verified ·
1 Parent(s): 7be030e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -8
README.md CHANGED
@@ -10,8 +10,21 @@ tags:
10
  - multi-head
11
  - job-posts
12
  - custom_code
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
-
15
  # GoodJob: job post classifier
16
 
17
  A `bert-base-uncased` model with two classification heads that reads
@@ -45,7 +58,7 @@ from transformers import AutoModelForSequenceClassification
45
 
46
  model = AutoModelForSequenceClassification.from_pretrained(
47
  "SpiderHomie/goodjob",
48
- trust_remote_code=True,
49
  )
50
 
51
  # single post -> dict
@@ -71,17 +84,61 @@ Example output:
71
  Raw access: `out = model(**tokenizer(text, return_tensors="pt"))` gives
72
  `out.logits` (type head) and `out.board_logits` (board head).
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  ## Important notes
75
 
76
- - The board head was trained on job posts only. `is_job_board` and `board_p`
77
- are `None` when the post is not classified as a job, and should not be trusted there.
 
78
  - For filtering, threshold `p_job` instead of using the argmax if you want to
79
  trade precision against recall.
80
- - Input is a single post's text only (no author, title or metadata).
81
  - `max_length` is 256 tokens; longer posts are truncated.
82
 
 
 
 
 
 
 
 
 
 
83
  ## Training data
84
 
85
- Labeled Twitter/X and LinkedIn posts (about 6,000), annotated with the label
86
- scheme above. Near-duplicate posts from bulk feeds were grouped so they do not
87
- leak across train/validation splits.
 
 
10
  - multi-head
11
  - job-posts
12
  - custom_code
13
+ model-index:
14
+ - name: goodjob
15
+ results:
16
+ - task:
17
+ type: text-classification
18
+ dataset:
19
+ name: GoodJob held-out test split (author-grouped)
20
+ type: private
21
+ metrics:
22
+ - type: accuracy
23
+ value: 0.872
24
+ - type: f1
25
+ name: macro-F1 (type head)
26
+ value: 0.854
27
  ---
 
28
  # GoodJob: job post classifier
29
 
30
  A `bert-base-uncased` model with two classification heads that reads
 
58
 
59
  model = AutoModelForSequenceClassification.from_pretrained(
60
  "SpiderHomie/goodjob",
61
+ trust_remote_code=True,
62
  )
63
 
64
  # single post -> dict
 
84
  Raw access: `out = model(**tokenizer(text, return_tensors="pt"))` gives
85
  `out.logits` (type head) and `out.board_logits` (board head).
86
 
87
+ ## Evaluation
88
+
89
+ Held-out test split of 483 posts. Splits are grouped by author, so no account
90
+ appears in more than one of train, validation and test. The checkpoint was chosen
91
+ on validation; the test split was evaluated after training.
92
+
93
+ **Type head (test)**: accuracy 0.872, macro-F1 0.854
94
+
95
+ | Class | Precision | Recall | F1 | Support |
96
+ |---|---|---|---|---|
97
+ | ML Job | 0.812 | 0.852 | 0.832 | 61 |
98
+ | Job | 0.895 | 0.876 | 0.885 | 194 |
99
+ | Other | 0.864 | 0.731 | 0.792 | 78 |
100
+ | Not Job | 0.871 | 0.947 | 0.907 | 150 |
101
+
102
+ Confusion matrix (rows = true, columns = predicted; order: ML Job, Job, Other, Not Job):
103
+
104
+ ```
105
+ [[ 52, 6, 0, 3],
106
+ [ 3, 170, 8, 13],
107
+ [ 8, 8, 57, 5],
108
+ [ 1, 6, 1, 142]]
109
+ ```
110
+
111
+ Validation: accuracy 0.892, macro-F1 0.875.
112
+
113
+ **Board head (test, job posts only)**: macro-F1 0.736 (validation 0.796), on 333
114
+ posts. This is a weaker secondary head: about one in three regular accounts is
115
+ labelled as a job board.
116
+
117
+ Per-class numbers rest on small supports (61 ML Job, 78 Other), so differences of
118
+ a few points are within noise. [Add bootstrap confidence intervals and a baseline here.]
119
+
120
  ## Important notes
121
 
122
+ - The board head was trained and evaluated on job posts only (posts labelled
123
+ `Not Job` are excluded from its loss). `is_job_board` and `board_p` are `None`
124
+ when the post is not classified as a job and should not be trusted there.
125
  - For filtering, threshold `p_job` instead of using the argmax if you want to
126
  trade precision against recall.
127
+ - Input is a single post's text only. [Confirm: no author or metadata was used in training.]
128
  - `max_length` is 256 tokens; longer posts are truncated.
129
 
130
+ ## Limitations
131
+
132
+ - The hardest boundaries are ML Job vs Job, and Other vs Job; expect to review those calls.
133
+ - Evaluated on one dataset from one collection process (Twitter/X and LinkedIn
134
+ posts gathered with a specific search seed). Performance on other feeds,
135
+ time periods or platforms is unknown.
136
+ - Not intended for hiring decisions or for judging individuals or accounts.
137
+ "Job board" is a behavioural label, not an identity.
138
+
139
  ## Training data
140
 
141
+ Labeled Twitter/X and LinkedIn posts ([N] in total), annotated with the label
142
+ scheme above by [who labelled]. The data is not released. Train, validation and
143
+ test are split by (platform, author), so the same account never appears in more
144
+ than one split.