Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
success
Browse files- app.py +0 -17
- result.txt +6 -5
- train.txt +0 -0
- train_info.txt +0 -0
- train_label.txt +0 -0
app.py
CHANGED
|
@@ -141,23 +141,6 @@ def process_file(file,label,info, model_name):
|
|
| 141 |
"-b",str(5)
|
| 142 |
], shell=True)
|
| 143 |
|
| 144 |
-
# For demonstration purposes, we'll just return the content with the selected model name
|
| 145 |
-
if(model_name=="FS"):
|
| 146 |
-
checkpoint="ratio_proportion_change3/output/FS/bert_fine_tuned.model.ep32"
|
| 147 |
-
elif(model_name=="IS"):
|
| 148 |
-
checkpoint="ratio_proportion_change3/output/IS/bert_fine_tuned.model.ep14"
|
| 149 |
-
elif(model_name=="CORRECTNESS"):
|
| 150 |
-
checkpoint="ratio_proportion_change3/output/correctness/bert_fine_tuned.model.ep48"
|
| 151 |
-
elif(model_name=="EFFECTIVENESS"):
|
| 152 |
-
checkpoint="ratio_proportion_change3/output/effectiveness/bert_fine_tuned.model.ep28"
|
| 153 |
-
else:
|
| 154 |
-
checkpoint=None
|
| 155 |
-
|
| 156 |
-
print(checkpoint)
|
| 157 |
-
subprocess.run(["python", "src/test_saved_model.py",
|
| 158 |
-
"--finetuned_bert_checkpoint",checkpoint
|
| 159 |
-
])
|
| 160 |
-
|
| 161 |
result = {}
|
| 162 |
with open("result.txt", 'r') as file:
|
| 163 |
for line in file:
|
|
|
|
| 141 |
"-b",str(5)
|
| 142 |
], shell=True)
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
result = {}
|
| 145 |
with open("result.txt", 'r') as file:
|
| 146 |
for line in file:
|
result.txt
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
epoch: EP0_test
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
precisions: 0.
|
| 5 |
-
recalls:
|
| 6 |
-
f1_scores: 0.
|
|
|
|
| 7 |
auc_score: 0.5
|
|
|
|
| 1 |
epoch: EP0_test
|
| 2 |
+
avg_loss: 0.8247231508152465
|
| 3 |
+
total_acc: 50.0
|
| 4 |
+
precisions: 0.25
|
| 5 |
+
recalls: 0.5
|
| 6 |
+
f1_scores: 0.3333333333333333
|
| 7 |
+
time_taken_from_start: 74.82294392585754
|
| 8 |
auc_score: 0.5
|
train.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train_info.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train_label.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|