Spaces:
Running
Running
changed the finetune task for full test as well
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def process_file(model_name,inc_slider,progress=Progress(track_tqdm=True)):
|
|
37 |
elif(model_name=="ASTRA-FT-FULL"):
|
38 |
# test_info_location=parent_location+"fullTest/test_info.txt"
|
39 |
# test_location=parent_location+"fullTest/test.txt"
|
40 |
-
finetune_task="
|
41 |
else:
|
42 |
finetune_task=None
|
43 |
# Load the test_info file and the graduation rate file
|
@@ -153,6 +153,7 @@ def process_file(model_name,inc_slider,progress=Progress(track_tqdm=True)):
|
|
153 |
|
154 |
|
155 |
progress(0.2, desc="analysis done!! Executing models")
|
|
|
156 |
subprocess.run([
|
157 |
"python", "new_test_saved_finetuned_model.py",
|
158 |
"-workspace_name", "ratio_proportion_change3_2223/sch_largest_100-coded",
|
@@ -208,7 +209,8 @@ def process_file(model_name,inc_slider,progress=Progress(track_tqdm=True)):
|
|
208 |
|
209 |
# List of models for the dropdown menu
|
210 |
|
211 |
-
models = ["ASTRA-FT-HGR", "ASTRA-FT-LGR", "ASTRA-FT-FULL"]
|
|
|
212 |
content = """
|
213 |
<h1 style="color: white;">ASTRA: An AI Model for Analyzing Math Strategies</h1>
|
214 |
|
@@ -238,7 +240,6 @@ lead to correct vs. incorrect solutions.</p>
|
|
238 |
<li style="color: white;">Select a fine-tuned model:
|
239 |
<ul style="color: white;">
|
240 |
<li style="color: white;">ASTRA-FT-HGR: Fine-tuned with a small sample of data from schools that have a high graduation rate.</li>
|
241 |
-
<li style="color: white;">ASTRA-FT-LGR: Fine-tuned with a small sample of data from schools that have a low graduation rate.</li>
|
242 |
<li style="color: white;">ASTRA-FT-Full: Fine-tuned with a small sample of data from a mix of schools that have high/low graduation rates.</li>
|
243 |
</ul>
|
244 |
</li>
|
|
|
37 |
elif(model_name=="ASTRA-FT-FULL"):
|
38 |
# test_info_location=parent_location+"fullTest/test_info.txt"
|
39 |
# test_location=parent_location+"fullTest/test.txt"
|
40 |
+
finetune_task="fullTest"
|
41 |
else:
|
42 |
finetune_task=None
|
43 |
# Load the test_info file and the graduation rate file
|
|
|
153 |
|
154 |
|
155 |
progress(0.2, desc="analysis done!! Executing models")
|
156 |
+
print("finetuned task: ",finetune_task)
|
157 |
subprocess.run([
|
158 |
"python", "new_test_saved_finetuned_model.py",
|
159 |
"-workspace_name", "ratio_proportion_change3_2223/sch_largest_100-coded",
|
|
|
209 |
|
210 |
# List of models for the dropdown menu
|
211 |
|
212 |
+
# models = ["ASTRA-FT-HGR", "ASTRA-FT-LGR", "ASTRA-FT-FULL"]
|
213 |
+
models = ["ASTRA-FT-HGR", "ASTRA-FT-FULL"]
|
214 |
content = """
|
215 |
<h1 style="color: white;">ASTRA: An AI Model for Analyzing Math Strategies</h1>
|
216 |
|
|
|
240 |
<li style="color: white;">Select a fine-tuned model:
|
241 |
<ul style="color: white;">
|
242 |
<li style="color: white;">ASTRA-FT-HGR: Fine-tuned with a small sample of data from schools that have a high graduation rate.</li>
|
|
|
243 |
<li style="color: white;">ASTRA-FT-Full: Fine-tuned with a small sample of data from a mix of schools that have high/low graduation rates.</li>
|
244 |
</ul>
|
245 |
</li>
|
plot.png
CHANGED
ratio_proportion_change3_2223/sch_largest_100-coded/finetuning/fullTest/test.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35569d6f81ef85e6353f36912c1cb79bfb723fe7d2476e10afcb745c170c5130
|
3 |
+
size 24672844
|
ratio_proportion_change3_2223/sch_largest_100-coded/finetuning/fullTest/test_info.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a6aadba0002bfdfde835b8837b3ff36cd84c64c3e23b6589ec1d002b4b62c2f4
|
3 |
+
size 122629427
|
result.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
avg_loss: 0.
|
2 |
-
total_acc: 69.
|
3 |
-
precisions: 0.
|
4 |
-
recalls: 0.
|
5 |
-
f1_scores: 0.
|
6 |
-
time_taken_from_start:
|
7 |
-
auc_score: 0.
|
|
|
1 |
+
avg_loss: 0.5841353535652161
|
2 |
+
total_acc: 69.00702106318957
|
3 |
+
precisions: 0.7236623191454734
|
4 |
+
recalls: 0.6900702106318957
|
5 |
+
f1_scores: 0.6802420656474512
|
6 |
+
time_taken_from_start: 30.22950553894043
|
7 |
+
auc_score: 0.7457100293916334
|
roc_data.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1eec496eaf0223a6c65d0367eb586c968edc655b7e4c601d35db358f8419047d
|
3 |
+
size 9437
|
selected_rows.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|