JadAssaf
commited on
Commit
·
78f7cb6
1
Parent(s):
398a6f6
Removal of accelerated parameter
Browse files- STPI_2WAY_RandomForest.joblib +2 -2
- STPI_3WAY_RandomForest.joblib +2 -2
- app.py +11 -5
STPI_2WAY_RandomForest.joblib
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:84ae3aec58b4bf3cfe625ac2138d6ac245f741787070ea7ae2538f404029fc5a
|
3 |
+
size 86585
|
STPI_3WAY_RandomForest.joblib
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:2404d314d346836902a186594bbeb9371f822b07aabe863d07c3777ddca05875
|
3 |
+
size 95873
|
app.py
CHANGED
@@ -5,11 +5,15 @@ loaded_rf_2way = joblib.load("STPI_2WAY_RandomForest.joblib")
|
|
5 |
loaded_rf_3way = joblib.load("STPI_3WAY_RandomForest.joblib")
|
6 |
|
7 |
|
8 |
-
def STPI(t_0_5_MaxValue,t_1_0_MaxValue,t_2_0_MaxValue,
|
|
|
|
|
9 |
print('------------------')
|
10 |
print(Optional_Custom_Message)
|
11 |
|
12 |
-
X = [t_0_5_MaxValue,t_1_0_MaxValue,t_2_0_MaxValue,
|
|
|
|
|
13 |
print(X)
|
14 |
outcome_decoded = ['Normal','Keratoconic','Suspect']
|
15 |
file_object = open('stpi_data.txt', 'a')
|
@@ -19,8 +23,8 @@ def STPI(t_0_5_MaxValue,t_1_0_MaxValue,t_2_0_MaxValue,Acc_0_5__1_0_MaxValue,Abs_
|
|
19 |
file_object.write(';')
|
20 |
file_object.write(str(t_2_0_MaxValue))
|
21 |
file_object.write(';')
|
22 |
-
file_object.write(str(Acc_0_5__1_0_MaxValue))
|
23 |
-
file_object.write(';')
|
24 |
file_object.write(str(Abs_Diff_t_0_5_MaxValue))
|
25 |
file_object.write(';')
|
26 |
file_object.write(str(Abs_Diff_t_1_0_MaxValue))
|
@@ -50,7 +54,9 @@ iface = gr.Interface(
|
|
50 |
fn=STPI,
|
51 |
title='STPI Calculator',
|
52 |
description='Calculates the STPI through summarized tomographic parameters. Beta version by Prof. Shady Awwad, Jad Assaf MD and Jawad Kaisania.',
|
53 |
-
inputs=["number", "number","number",
|
|
|
|
|
54 |
outputs="text")
|
55 |
iface.launch(share=True)
|
56 |
# %%
|
|
|
5 |
loaded_rf_3way = joblib.load("STPI_3WAY_RandomForest.joblib")
|
6 |
|
7 |
|
8 |
+
def STPI(t_0_5_MaxValue,t_1_0_MaxValue,t_2_0_MaxValue,
|
9 |
+
# Acc_0_5__1_0_MaxValue,
|
10 |
+
Abs_Diff_t_0_5_MaxValue,Abs_Diff_t_1_0_MaxValue,Abs_Diff_t_2_0_MaxValue,Optional_Custom_Message='No_Message'):
|
11 |
print('------------------')
|
12 |
print(Optional_Custom_Message)
|
13 |
|
14 |
+
X = [t_0_5_MaxValue,t_1_0_MaxValue,t_2_0_MaxValue,
|
15 |
+
# Acc_0_5__1_0_MaxValue,
|
16 |
+
Abs_Diff_t_0_5_MaxValue,Abs_Diff_t_1_0_MaxValue,Abs_Diff_t_2_0_MaxValue]
|
17 |
print(X)
|
18 |
outcome_decoded = ['Normal','Keratoconic','Suspect']
|
19 |
file_object = open('stpi_data.txt', 'a')
|
|
|
23 |
file_object.write(';')
|
24 |
file_object.write(str(t_2_0_MaxValue))
|
25 |
file_object.write(';')
|
26 |
+
# file_object.write(str(Acc_0_5__1_0_MaxValue))
|
27 |
+
# file_object.write(';')
|
28 |
file_object.write(str(Abs_Diff_t_0_5_MaxValue))
|
29 |
file_object.write(';')
|
30 |
file_object.write(str(Abs_Diff_t_1_0_MaxValue))
|
|
|
54 |
fn=STPI,
|
55 |
title='STPI Calculator',
|
56 |
description='Calculates the STPI through summarized tomographic parameters. Beta version by Prof. Shady Awwad, Jad Assaf MD and Jawad Kaisania.',
|
57 |
+
inputs=["number", "number","number",
|
58 |
+
# "number",
|
59 |
+
"number", "number","number","text"],
|
60 |
outputs="text")
|
61 |
iface.launch(share=True)
|
62 |
# %%
|