MattStammers commited on
Commit
c41f7a6
·
verified ·
1 Parent(s): c7ca9e8

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +10 -0
  2. attention_weights/Patient_Text_attention_sample_0.png +0 -0
  3. attention_weights/Patient_Text_attention_sample_1.png +0 -0
  4. attention_weights/Patient_Text_attention_sample_2.png +0 -0
  5. attention_weights/Patient_Text_attention_sample_3.png +0 -0
  6. attention_weights/Patient_Text_attention_sample_4.png +0 -0
  7. attention_weights/Patient_Text_attention_sample_5.png +0 -0
  8. attention_weights/Patient_Text_attention_sample_6.png +0 -0
  9. attention_weights/Patient_Text_attention_sample_7.png +0 -0
  10. attention_weights/Patient_Text_attention_sample_8.png +0 -0
  11. attention_weights/Patient_Text_attention_sample_9.png +0 -0
  12. config copy.json +25 -0
  13. integrated_gradients/Patient_Text_ig_sample_0.png +3 -0
  14. integrated_gradients/Patient_Text_ig_sample_1.png +3 -0
  15. integrated_gradients/Patient_Text_ig_sample_2.png +3 -0
  16. integrated_gradients/Patient_Text_ig_sample_3.png +3 -0
  17. integrated_gradients/Patient_Text_ig_sample_4.png +3 -0
  18. integrated_gradients/Patient_Text_ig_sample_5.png +3 -0
  19. integrated_gradients/Patient_Text_ig_sample_6.png +3 -0
  20. integrated_gradients/Patient_Text_ig_sample_7.png +3 -0
  21. integrated_gradients/Patient_Text_ig_sample_8.png +3 -0
  22. integrated_gradients/Patient_Text_ig_sample_9.png +3 -0
  23. lime/Patient_Text_sample_0_lime.html +0 -0
  24. lime/Patient_Text_sample_1_lime.html +0 -0
  25. lime/Patient_Text_sample_2_lime.html +0 -0
  26. lime/Patient_Text_sample_3_lime.html +0 -0
  27. lime/Patient_Text_sample_4_lime.html +0 -0
  28. model copy.safetensors +3 -0
  29. model.safetensors +1 -1
  30. shap/Patient_Text_shap_feature_importance.png +0 -0
  31. shap/Patient_Text_shap_summary.png +0 -0
  32. shap/Patient_Text_shap_values.pkl +3 -0
  33. shap/shap_token_outputs/sample_0_top_tokens.txt +2 -0
  34. shap/shap_token_outputs/sample_10_top_tokens.txt +2 -0
  35. shap/shap_token_outputs/sample_11_top_tokens.txt +2 -0
  36. shap/shap_token_outputs/sample_12_top_tokens.txt +2 -0
  37. shap/shap_token_outputs/sample_13_top_tokens.txt +2 -0
  38. shap/shap_token_outputs/sample_14_top_tokens.txt +2 -0
  39. shap/shap_token_outputs/sample_15_top_tokens.txt +2 -0
  40. shap/shap_token_outputs/sample_16_top_tokens.txt +2 -0
  41. shap/shap_token_outputs/sample_17_top_tokens.txt +2 -0
  42. shap/shap_token_outputs/sample_18_top_tokens.txt +2 -0
  43. shap/shap_token_outputs/sample_19_top_tokens.txt +2 -0
  44. shap/shap_token_outputs/sample_1_top_tokens.txt +2 -0
  45. shap/shap_token_outputs/sample_2_top_tokens.txt +2 -0
  46. shap/shap_token_outputs/sample_3_top_tokens.txt +2 -0
  47. shap/shap_token_outputs/sample_4_top_tokens.txt +2 -0
  48. shap/shap_token_outputs/sample_5_top_tokens.txt +2 -0
  49. shap/shap_token_outputs/sample_6_top_tokens.txt +2 -0
  50. shap/shap_token_outputs/sample_7_top_tokens.txt +2 -0
.gitattributes CHANGED
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ integrated_gradients/Patient_Text_ig_sample_0.png filter=lfs diff=lfs merge=lfs -text
37
+ integrated_gradients/Patient_Text_ig_sample_1.png filter=lfs diff=lfs merge=lfs -text
38
+ integrated_gradients/Patient_Text_ig_sample_2.png filter=lfs diff=lfs merge=lfs -text
39
+ integrated_gradients/Patient_Text_ig_sample_3.png filter=lfs diff=lfs merge=lfs -text
40
+ integrated_gradients/Patient_Text_ig_sample_4.png filter=lfs diff=lfs merge=lfs -text
41
+ integrated_gradients/Patient_Text_ig_sample_5.png filter=lfs diff=lfs merge=lfs -text
42
+ integrated_gradients/Patient_Text_ig_sample_6.png filter=lfs diff=lfs merge=lfs -text
43
+ integrated_gradients/Patient_Text_ig_sample_7.png filter=lfs diff=lfs merge=lfs -text
44
+ integrated_gradients/Patient_Text_ig_sample_8.png filter=lfs diff=lfs merge=lfs -text
45
+ integrated_gradients/Patient_Text_ig_sample_9.png filter=lfs diff=lfs merge=lfs -text
attention_weights/Patient_Text_attention_sample_0.png ADDED
attention_weights/Patient_Text_attention_sample_1.png ADDED
attention_weights/Patient_Text_attention_sample_2.png ADDED
attention_weights/Patient_Text_attention_sample_3.png ADDED
attention_weights/Patient_Text_attention_sample_4.png ADDED
attention_weights/Patient_Text_attention_sample_5.png ADDED
attention_weights/Patient_Text_attention_sample_6.png ADDED
attention_weights/Patient_Text_attention_sample_7.png ADDED
attention_weights/Patient_Text_attention_sample_8.png ADDED
attention_weights/Patient_Text_attention_sample_9.png ADDED
config copy.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "initializer_range": 0.02,
12
+ "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
+ "pad_token_id": 0,
17
+ "problem_type": "single_label_classification",
18
+ "qa_dropout": 0.1,
19
+ "seq_classif_dropout": 0.2,
20
+ "sinusoidal_pos_embds": false,
21
+ "tie_weights_": true,
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.49.0",
24
+ "vocab_size": 30522
25
+ }
integrated_gradients/Patient_Text_ig_sample_0.png ADDED

Git LFS Details

  • SHA256: eb58a7128ae523e5585e0e57bdb640aea6bfd808085db25add0fb1c063e2e4ee
  • Pointer size: 131 Bytes
  • Size of remote file: 300 kB
integrated_gradients/Patient_Text_ig_sample_1.png ADDED

Git LFS Details

  • SHA256: cf0e4e881f02414d7bee8c634b6980006263d5fa72a884bd709d139d3213ecda
  • Pointer size: 131 Bytes
  • Size of remote file: 251 kB
integrated_gradients/Patient_Text_ig_sample_2.png ADDED

Git LFS Details

  • SHA256: b6a7a9bcbb2b5da2b1864608e06ec74d01d9f71cc6591e63aaf1b80cd9b4881e
  • Pointer size: 131 Bytes
  • Size of remote file: 284 kB
integrated_gradients/Patient_Text_ig_sample_3.png ADDED

Git LFS Details

  • SHA256: 5e8eb01fe97b7ede108d61b0472b3c8790e42f195781fcce65c9f27533db7e2f
  • Pointer size: 131 Bytes
  • Size of remote file: 247 kB
integrated_gradients/Patient_Text_ig_sample_4.png ADDED

Git LFS Details

  • SHA256: 43e131abe12cc6f30a08129d02d567c1c2d28c8128f57db9b5e022bddf2303b0
  • Pointer size: 131 Bytes
  • Size of remote file: 269 kB
integrated_gradients/Patient_Text_ig_sample_5.png ADDED

Git LFS Details

  • SHA256: b05af39621395ab5945a5816e9f06d0b700f2c9e06162cb3979d176ea327e4a1
  • Pointer size: 131 Bytes
  • Size of remote file: 285 kB
integrated_gradients/Patient_Text_ig_sample_6.png ADDED

Git LFS Details

  • SHA256: 0e70a41d765a65242eb7fba0155e15cb62b86cc420b06692d96fc48fb0439c81
  • Pointer size: 131 Bytes
  • Size of remote file: 306 kB
integrated_gradients/Patient_Text_ig_sample_7.png ADDED

Git LFS Details

  • SHA256: 447378aa2589ec76bf87611b46c01ffcc43ea4f13e6bf109fd41214c491722c1
  • Pointer size: 131 Bytes
  • Size of remote file: 285 kB
integrated_gradients/Patient_Text_ig_sample_8.png ADDED

Git LFS Details

  • SHA256: 7343f18ecf3f40b7a88d6640e3018c653041d031dcd0f975ac8f1ea98c483970
  • Pointer size: 131 Bytes
  • Size of remote file: 307 kB
integrated_gradients/Patient_Text_ig_sample_9.png ADDED

Git LFS Details

  • SHA256: b43285f93d53af560043478d6d27e427c130515263c35af7027de986610ece33
  • Pointer size: 131 Bytes
  • Size of remote file: 276 kB
lime/Patient_Text_sample_0_lime.html ADDED
The diff for this file is too large to render. See raw diff
 
lime/Patient_Text_sample_1_lime.html ADDED
The diff for this file is too large to render. See raw diff
 
lime/Patient_Text_sample_2_lime.html ADDED
The diff for this file is too large to render. See raw diff
 
lime/Patient_Text_sample_3_lime.html ADDED
The diff for this file is too large to render. See raw diff
 
lime/Patient_Text_sample_4_lime.html ADDED
The diff for this file is too large to render. See raw diff
 
model copy.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:045326b1cdbbfe462e6466e11973ab61b3dbc0ec7f4f4fe88d7ff5fe0393b14f
3
+ size 267832560
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:045326b1cdbbfe462e6466e11973ab61b3dbc0ec7f4f4fe88d7ff5fe0393b14f
3
  size 267832560
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3db78c17dcdf5f18d22c1d5a452612c439a77dc44bd28b344fa8065be82f3cc
3
  size 267832560
shap/Patient_Text_shap_feature_importance.png ADDED
shap/Patient_Text_shap_summary.png ADDED
shap/Patient_Text_shap_values.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60dc31ce2ea5091d2be8affca7dba6ab9dd4f0a454ef7286c699761c6e7bbf2e
3
+ size 42321
shap/shap_token_outputs/sample_0_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 0 for Patient_Text (Top SHAP tokens) ===
2
+ mapping(+2.67) | biopsy(+2.67) | series(+2.02) | pseudopoloid(-0.65) | clinical(+0.58) | macroscopic(+0.58) | starting(+0.00) | from(+0.00) | ascending(+0.00) | colon(+0.00)
shap/shap_token_outputs/sample_10_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 10 for Patient_Text (Top SHAP tokens) ===
2
+ biopsy(+4.18) | series(+1.60) | from(+1.60) | caecpgmoid(-0.42) | mapping(+0.04) | starting(+0.00) | colon(+0.00) | clinical(+0.00) | screening(+0.00) | macro(+0.00)
shap/shap_token_outputs/sample_11_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 11 for Patient_Text (Top SHAP tokens) ===
2
+ axry(+1.07) | diarrhoe(-0.88) | colonic(+0.00) | mapping(+0.00) | series(+0.00) | clinical(+0.00) | history(+0.00) | :psies(+0.00) | fragments(+0.00) | colon(+0.00)
shap/shap_token_outputs/sample_12_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 12 for Patient_Text (Top SHAP tokens) ===
2
+ colonic(+4.41) | biopsies(-0.00) | mapping(+0.00) | clinical(+0.00) | history(+0.00) | severe(+0.00) | colitis(+0.00) | .scopic(+0.00) | microscopic(+0.00) | fragments(+0.00)
shap/shap_token_outputs/sample_13_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 13 for Patient_Text (Top SHAP tokens) ===
2
+ inflammation(+0.01) | colonic(+0.00) | mapping(+0.00) | biopsies(+0.00) | history(+0.00) | macro(+0.00) | there(+0.00) | terminal(+0.00) | ileies(+0.00) | largeps(+0.00)
shap/shap_token_outputs/sample_14_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 14 for Patient_Text (Top SHAP tokens) ===
2
+ colonic(-6.82) | mapping(+0.00) | biopsy(+0.00) | clinical(+0.00) | history(+0.00) | biops(+0.00) | microscopic(+0.00) | with(+0.00) | surfaceelial(+0.00) | detion(+0.00)
shap/shap_token_outputs/sample_15_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 15 for Patient_Text (Top SHAP tokens) ===
2
+ biopsy(-7.38) | mapping(+0.00) | from(+0.00) | descending(+0.00) | colon(+0.00) | clinical(+0.00) | history(+0.00) | mappingies(+0.00) | microscopic(+0.00) | colitisscopic(+0.00)
shap/shap_token_outputs/sample_16_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 16 for Patient_Text (Top SHAP tokens) ===
2
+ duodenum(+8.79) | clinicaloh(+0.07) | biopsy(+0.00) | second(+0.00) | particpsies(+0.00) | terminal(+0.00) | ilepsy(+0.00) | anaemia(+0.00) | ileocoicohn(+0.00) | pseudo(+0.00)
shap/shap_token_outputs/sample_17_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 17 for Patient_Text (Top SHAP tokens) ===
2
+ colorectal(+6.96) | biopsies(+2.44) | mapping(+0.00) | biopsy(+0.00) | clinical(+0.00) | history(+0.00) | macro(+0.00) | sections(+0.00) | show(+0.00) | four(+0.00)
shap/shap_token_outputs/sample_18_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 18 for Patient_Text (Top SHAP tokens) ===
2
+ colorectal(+5.00) | clinical(+4.29) | mapping(-0.71) | location(-0.71) | 5ies(-0.71) | mapping(+0.00) | biopsies(+0.00) | historyc(+0.00) | mapping(+0.00) | series(+0.00)
shap/shap_token_outputs/sample_19_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 19 for Patient_Text (Top SHAP tokens) ===
2
+ they(-4.04) | blood(-2.20) | complete(-1.40) | biopsies(+0.80) | repeat(+0.46) | colonic(+0.00) | mapping(+0.00) | series(+0.00) | clinical(+0.00) | history(+0.00)
shap/shap_token_outputs/sample_1_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 1 for Patient_Text (Top SHAP tokens) ===
2
+ biopsy(-1.72) | /mptomatic(-0.00) | from(+0.00) | oesophagus(+0.00) | from(+0.00) | oesopgus(+0.00) | bioha(+0.00) | atcm(+0.00) | clinical(+0.00) | historyesge(+0.00)
shap/shap_token_outputs/sample_2_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 2 for Patient_Text (Top SHAP tokens) ===
2
+ remains(+2.91) | monthly(-2.62) | crohn(+1.59) | biops(+1.32) | mapping(+0.00) | biopsy(+0.00) | series(+0.00) | from(+0.00) | terminal(+0.00) | ileum(+0.00)
shap/shap_token_outputs/sample_3_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 3 for Patient_Text (Top SHAP tokens) ===
2
+ mapping(+0.00) | grade(+0.00) | microscopic(+0.00) | colonic(+0.00) | biopsies(+0.00) | poly(+0.00) | sigm(+0.00) | colonic(+0.00) | history(+0.00) | aden(+0.00)
shap/shap_token_outputs/sample_4_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 4 for Patient_Text (Top SHAP tokens) ===
2
+ clinical(-0.11) | colonic(+0.00) | mapping(+0.00) | biopsies(+0.00) | history(+0.00) | mapping(+0.00) | inflammation(+0.00) | poly(+0.00) | macroscopic(+0.00) | bioies(+0.00)
shap/shap_token_outputs/sample_5_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 5 for Patient_Text (Top SHAP tokens) ===
2
+ 2017(+2.29) | ulcerativetis(+2.29) | these(+0.08) | clinical(+0.07) | colon(-0.01) | crypt(+0.01) | mapping(+0.00) | biopsy(+0.00) | series(+0.00) | from(+0.00)
shap/shap_token_outputs/sample_6_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 6 for Patient_Text (Top SHAP tokens) ===
2
+ biopsies(-2.01) | from(-1.31) | time(-0.11) | colon(-0.11) | colonic(+0.00) | mapping(+0.00) | descending(+0.00) | clinical(+0.00) | assessment(+0.00) | macroscopic(+0.00)
shap/shap_token_outputs/sample_7_top_tokens.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ === Sample 7 for Patient_Text (Top SHAP tokens) ===
2
+ bioies(+0.37) | mildlybro(-0.21) | colonic(+0.00) | mapping(+0.00) | biopsies(+0.00) | from(+0.00) | colonic(+0.00) | polyp(+0.00) | transverse(+0.00) | fromgm(+0.00)