Spaces:
Runtime error
Runtime error
Soumic
commited on
Commit
Β·
a0b4d21
1
Parent(s):
a491ee5
:hammer: Save progress
Browse files
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
title: Mqtl Classification Using Dnabert 6
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: creativeml-openrail-m
|
|
|
2 |
title: Mqtl Classification Using Dnabert 6
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: creativeml-openrail-m
|
app.py
CHANGED
@@ -401,7 +401,7 @@ class DnaBert6MQTLClassifier(nn.Module):
|
|
401 |
|
402 |
|
403 |
def start_bert(classifier_model, criterion, m_optimizer=torch.optim.Adam, WINDOW=200,
|
404 |
-
|
405 |
file_suffix = ""
|
406 |
if is_binned:
|
407 |
file_suffix = "_binned"
|
@@ -488,9 +488,16 @@ def start_bert(classifier_model, criterion, m_optimizer=torch.optim.Adam, WINDOW
|
|
488 |
if __name__ == '__main__':
|
489 |
login_inside_huggingface_virtualmachine()
|
490 |
|
491 |
-
WINDOW =
|
492 |
some_model = DnaBert6MQTLClassifier(seq_len=WINDOW, model_repository_name="dnabert-6-mqtl-classifier")
|
493 |
criterion = ReshapedBCEWithLogitsLoss()
|
494 |
|
495 |
-
start_bert(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
pass
|
|
|
401 |
|
402 |
|
403 |
def start_bert(classifier_model, criterion, m_optimizer=torch.optim.Adam, WINDOW=200,
|
404 |
+
is_binned=True, is_debug=False, max_epochs=10, batch_size=8):
|
405 |
file_suffix = ""
|
406 |
if is_binned:
|
407 |
file_suffix = "_binned"
|
|
|
488 |
if __name__ == '__main__':
|
489 |
login_inside_huggingface_virtualmachine()
|
490 |
|
491 |
+
WINDOW = 4000
|
492 |
some_model = DnaBert6MQTLClassifier(seq_len=WINDOW, model_repository_name="dnabert-6-mqtl-classifier")
|
493 |
criterion = ReshapedBCEWithLogitsLoss()
|
494 |
|
495 |
+
start_bert(
|
496 |
+
classifier_model=some_model,
|
497 |
+
criterion=criterion,
|
498 |
+
WINDOW=WINDOW,
|
499 |
+
is_debug=False,
|
500 |
+
max_epochs=20,
|
501 |
+
batch_size=32
|
502 |
+
)
|
503 |
pass
|