AshleyBanksNIHR commited on
Commit
dac9ba7
·
verified ·
1 Parent(s): edd523a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -16
README.md CHANGED
@@ -1,25 +1,33 @@
1
  ---
2
  license: mit
3
  ---
 
4
 
5
- 1. Data Selection & Splitting
6
- Source: HRCS 2014, 2018, and 2022 direct award datasets.
 
 
7
 
8
- Quality Filter: Records with abstracts shorter than 75 characters were removed during preprocessing prior to the Python deduplication and filtering steps to ensure the model had sufficient text to learn from. Only human coded abstracts were included.
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- Train x Test split: The Test Set was isolated using only 2022 data to provide a modern performance benchmark.
11
 
12
- 2. Training Data Deduplication
13
- Character-level TF-IDF vectors were generated from training titles using word-boundary character n-grams of length 3–5.
14
- Cosine similarity ≥ 0.85 was used to identify near-duplicate titles.
15
- Records exceeding this threshold were grouped using a connected-components graph algorithm.
16
- Only the first occurrence in file order from each group was retained in the training pool.
17
 
18
- 3. Leakage Prevention (Train vs. Test)
19
- To ensure the test set provides a truly unseen, honest evaluation of the model, the training pool was compared against the test data using the same cleaning procedure, TF-IDF character n-gram representation, and cosine similarity threshold (≥ 0.85).
20
- For this step, the TF-IDF vectorizer was fit on the combined set of training and test titles to ensure a shared feature space.
21
- Any training record with a cosine similarity ≥ 85% to any record in the test set was permanently removed from the training data.
22
- The test set itself was deduplicated using exact title matching only (no fuzzy matching was applied).
23
 
24
- Limitations:
25
- Short, highly generic grant titles (e.g., "Studentship") may have been deduplicated in the training set due to the similarity threshold.
 
1
  ---
2
  license: mit
3
  ---
4
+ ## Data Selection & Splitting
5
 
6
+ * **Source:** HRCS 2014, 2018, and 2022 direct award datasets.
7
+ * **Quality Filtering:** * Only **human-coded** abstracts were included.
8
+ * Records with abstracts shorter than **75 characters** were removed during preprocessing to ensure the model had sufficient text to learn from.
9
+ * **Train/Test Split:** The **Test Set** was isolated using only **2022 data** to provide a modern performance benchmark.
10
 
11
+ ---
12
+
13
+ ## Training Data Deduplication
14
+
15
+ To prevent the model from over-fitting on near-identical entries, a robust deduplication pipeline was implemented:
16
+
17
+ 1. **Vectorization:** Character-level **TF-IDF vectors** were generated from training titles using word-boundary character n-grams (length 3–5).
18
+ 2. **Similarity Analysis:** Near-duplicate titles were identified using a **Cosine Similarity threshold of $\ge 0.85$**.
19
+ 3. **Clustering:** Records exceeding this threshold were grouped using a **connected-components graph algorithm**.
20
+ 4. **Selection:** Only the first occurrence in file order from each group was retained in the training pool.
21
+
22
+ ---
23
 
24
+ ## Leakage Prevention (Train vs. Test)
25
 
26
+ To ensure the test set provides a truly unseen and honest evaluation, the following steps were taken:
 
 
 
 
27
 
28
+ * **Shared Feature Space:** The TF-IDF vectorizer was fit on the **combined** set of training and test titles.
29
+ * **Cross-Set Comparison:** Any training record with a **Cosine Similarity $\ge 85\%$** to any record in the test set was permanently removed from the training pool.
30
+ * **Test Set Integrity:** The test set itself was deduplicated using **exact title matching only** (no fuzzy matching applied).
 
 
31
 
32
+ > [!IMPORTANT]
33
+ > **Limitation:** Short, highly generic grant titles (e.g., *"Studentship"*) may have been deduplicated in the training set due to the similarity threshold.