ljw20180420
commited on
Commit
•
bb1ce73
1
Parent(s):
3260f21
Upload folder using huggingface_hub
Browse files
indel_model/README.md
CHANGED
@@ -48,34 +48,34 @@ The following hyperparameters were used during training:
|
|
48 |
|
49 |
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
-
| 1022.
|
52 |
-
| 710.
|
53 |
-
| 420.
|
54 |
-
| 244.
|
55 |
-
| 144.
|
56 |
-
| 92.
|
57 |
-
| 66.9501 | 7.0 | 2254 | 60.
|
58 |
-
| 55.
|
59 |
-
| 50.
|
60 |
-
| 48.
|
61 |
-
| 47.
|
62 |
-
| 46.
|
63 |
-
| 46.
|
64 |
-
| 46.2889 | 14.0 | 4508 | 47.
|
65 |
-
| 46.
|
66 |
-
| 46.
|
67 |
-
| 46.2015 | 17.0 | 5474 | 47.
|
68 |
-
| 46.
|
69 |
-
| 46.
|
70 |
-
| 46.
|
71 |
-
| 46.
|
72 |
-
| 46.1676 | 22.0 | 7084 | 47.
|
73 |
-
| 46.1614 | 23.0 | 7406 | 47.
|
74 |
-
| 46.
|
75 |
-
| 46.
|
76 |
-
| 46.
|
77 |
-
| 46.
|
78 |
-
| 46.
|
79 |
| 46.1231 | 29.0 | 9338 | 47.0786 |
|
80 |
| 46.117 | 30.0 | 9660 | 47.0798 |
|
81 |
|
|
|
48 |
|
49 |
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
+
| 1022.9014 | 1.0 | 322 | 880.6261 |
|
52 |
+
| 710.5549 | 2.0 | 644 | 540.0052 |
|
53 |
+
| 420.3118 | 3.0 | 966 | 316.6205 |
|
54 |
+
| 244.2501 | 4.0 | 1288 | 185.2687 |
|
55 |
+
| 144.4954 | 5.0 | 1610 | 113.2889 |
|
56 |
+
| 92.2284 | 6.0 | 1932 | 77.3025 |
|
57 |
+
| 66.9501 | 7.0 | 2254 | 60.5766 |
|
58 |
+
| 55.4648 | 8.0 | 2576 | 53.1402 |
|
59 |
+
| 50.3219 | 9.0 | 2898 | 49.8257 |
|
60 |
+
| 48.0616 | 10.0 | 3220 | 48.4087 |
|
61 |
+
| 47.0631 | 11.0 | 3542 | 47.6446 |
|
62 |
+
| 46.6081 | 12.0 | 3864 | 47.4013 |
|
63 |
+
| 46.3857 | 13.0 | 4186 | 47.2288 |
|
64 |
+
| 46.2889 | 14.0 | 4508 | 47.1596 |
|
65 |
+
| 46.2447 | 15.0 | 4830 | 47.0971 |
|
66 |
+
| 46.2195 | 16.0 | 5152 | 47.1162 |
|
67 |
+
| 46.2015 | 17.0 | 5474 | 47.1085 |
|
68 |
+
| 46.1924 | 18.0 | 5796 | 47.0946 |
|
69 |
+
| 46.1853 | 19.0 | 6118 | 47.1015 |
|
70 |
+
| 46.1784 | 20.0 | 6440 | 47.0497 |
|
71 |
+
| 46.1757 | 21.0 | 6762 | 47.0853 |
|
72 |
+
| 46.1676 | 22.0 | 7084 | 47.0706 |
|
73 |
+
| 46.1614 | 23.0 | 7406 | 47.1253 |
|
74 |
+
| 46.155 | 24.0 | 7728 | 47.0727 |
|
75 |
+
| 46.1499 | 25.0 | 8050 | 47.0992 |
|
76 |
+
| 46.1442 | 26.0 | 8372 | 47.0982 |
|
77 |
+
| 46.1369 | 27.0 | 8694 | 47.0905 |
|
78 |
+
| 46.1309 | 28.0 | 9016 | 47.0622 |
|
79 |
| 46.1231 | 29.0 | 9338 | 47.0786 |
|
80 |
| 46.117 | 30.0 | 9660 | 47.0798 |
|
81 |
|
indel_model/config.json
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/home/ljw/sdc1/CRISPR_results/Lindel/SX_spcas9_Lindel_indel",
|
3 |
"architectures": [
|
4 |
"LindelModel"
|
5 |
],
|
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"LindelModel"
|
4 |
],
|
indel_model/model.py
CHANGED
@@ -35,13 +35,16 @@ class LindelModel(PreTrainedModel):
|
|
35 |
self.reg_mode = config.reg_mode
|
36 |
self.reg_const = config.reg_const
|
37 |
if config.model == "indel":
|
|
|
38 |
feature_dim = 20 * 4 + 19 * 16
|
39 |
class_dim = 2
|
40 |
elif config.model == "ins":
|
|
|
41 |
feature_dim = 6 * 4 + 5 * 16
|
42 |
class_dim = 21
|
43 |
elif config.model == "del":
|
44 |
class_dim = (4 + 1 + 4 + config.dlen - 1) * (config.dlen - 1) // 2
|
|
|
45 |
feature_dim = class_dim * (config.mh_len + 1) + 20 * 4 + 19 * 16
|
46 |
self.linear = nn.Linear(in_features=feature_dim, out_features=class_dim)
|
47 |
self.initialize_weights()
|
|
|
35 |
self.reg_mode = config.reg_mode
|
36 |
self.reg_const = config.reg_const
|
37 |
if config.model == "indel":
|
38 |
+
# onehotencoder(ref[cut-17:cut+3])
|
39 |
feature_dim = 20 * 4 + 19 * 16
|
40 |
class_dim = 2
|
41 |
elif config.model == "ins":
|
42 |
+
# onehotencoder(ref[cut-3:cut+3])
|
43 |
feature_dim = 6 * 4 + 5 * 16
|
44 |
class_dim = 21
|
45 |
elif config.model == "del":
|
46 |
class_dim = (4 + 1 + 4 + config.dlen - 1) * (config.dlen - 1) // 2
|
47 |
+
# concatenate get_feature and onehotencoder(ref[cut-17:cut+3])
|
48 |
feature_dim = class_dim * (config.mh_len + 1) + 20 * 4 + 19 * 16
|
49 |
self.linear = nn.Linear(in_features=feature_dim, out_features=class_dim)
|
50 |
self.initialize_weights()
|
indel_model/runs/Oct28_11-56-11_ljw-System-Product-Name/events.out.tfevents.1730087772.ljw-System-Product-Name.78325.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cce6bf7593c89b8019d0a4db0ff9ecb169fc9fd13b63e1bd01359dd095293d20
|
3 |
+
size 19407
|
indel_model/training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5304
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5bd99de9d33243b395d23a54763b3dea4ad04cb4c5dcd76a64c123da53be6ba8
|
3 |
size 5304
|