ljw20180420
commited on
Commit
•
8f49402
1
Parent(s):
9bb779c
Upload folder using huggingface_hub
Browse files
del_model/config.json
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/home/ljw/sdc1/CRISPR_results/Lindel/SX_spcas9_Lindel_del",
|
3 |
"architectures": [
|
4 |
"LindelModel"
|
5 |
],
|
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"LindelModel"
|
4 |
],
|
del_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()
|
del_model/runs/Oct28_11-56-12_ljw-System-Product-Name/events.out.tfevents.1730089618.ljw-System-Product-Name.78325.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a37ce0dddba65b512a012df13456b11aa4ea45a455673c9ca4d82e8e0354eae4
|
3 |
+
size 19399
|
del_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:1a192fcff5cbab26e3e72f8ab6b025c0fff02741b1fbcbd4a51c4125f2c691ee
|
3 |
size 5304
|