JadAssaf
commited on
Commit
·
e746e73
1
Parent(s):
203a444
Renaming Metrics
Browse files
app.py
CHANGED
|
@@ -10,30 +10,30 @@ file_name = 'TSPI_model_joblib.sav'
|
|
| 10 |
model = joblib.load(file_name)
|
| 11 |
|
| 12 |
|
| 13 |
-
def STPI(
|
| 14 |
# Acc_0_5__1_0_MaxValue,
|
| 15 |
-
|
| 16 |
print('------------------')
|
| 17 |
|
| 18 |
-
X = [
|
| 19 |
# Acc_0_5__1_0_MaxValue,
|
| 20 |
-
|
| 21 |
print(X)
|
| 22 |
outcome_decoded = ['Normal','','Suspect','Keratoconic']
|
| 23 |
file_object = open('stpi_data.txt', 'a')
|
| 24 |
-
file_object.write(str(
|
| 25 |
file_object.write(';')
|
| 26 |
-
file_object.write(str(
|
| 27 |
file_object.write(';')
|
| 28 |
-
file_object.write(str(
|
| 29 |
file_object.write(';')
|
| 30 |
# file_object.write(str(Acc_0_5__1_0_MaxValue))
|
| 31 |
# file_object.write(';')
|
| 32 |
-
file_object.write(str(
|
| 33 |
file_object.write(';')
|
| 34 |
-
file_object.write(str(
|
| 35 |
file_object.write(';')
|
| 36 |
-
file_object.write(str(
|
| 37 |
file_object.write(';')
|
| 38 |
file_object.write('\n')
|
| 39 |
file_object.close()
|
|
|
|
| 10 |
model = joblib.load(file_name)
|
| 11 |
|
| 12 |
|
| 13 |
+
def STPI(TS4,TS2,TS1,
|
| 14 |
# Acc_0_5__1_0_MaxValue,
|
| 15 |
+
DTS4,DTS2,DTS1):
|
| 16 |
print('------------------')
|
| 17 |
|
| 18 |
+
X = [TS4,TS2,TS1,
|
| 19 |
# Acc_0_5__1_0_MaxValue,
|
| 20 |
+
DTS4,DTS2,DTS1]
|
| 21 |
print(X)
|
| 22 |
outcome_decoded = ['Normal','','Suspect','Keratoconic']
|
| 23 |
file_object = open('stpi_data.txt', 'a')
|
| 24 |
+
file_object.write(str(TS4))
|
| 25 |
file_object.write(';')
|
| 26 |
+
file_object.write(str(TS2))
|
| 27 |
file_object.write(';')
|
| 28 |
+
file_object.write(str(TS1))
|
| 29 |
file_object.write(';')
|
| 30 |
# file_object.write(str(Acc_0_5__1_0_MaxValue))
|
| 31 |
# file_object.write(';')
|
| 32 |
+
file_object.write(str(DTS4))
|
| 33 |
file_object.write(';')
|
| 34 |
+
file_object.write(str(DTS2))
|
| 35 |
file_object.write(';')
|
| 36 |
+
file_object.write(str(DTS1))
|
| 37 |
file_object.write(';')
|
| 38 |
file_object.write('\n')
|
| 39 |
file_object.close()
|