JadAssaf commited on
Commit
e746e73
·
1 Parent(s): 203a444

Renaming Metrics

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -10,30 +10,30 @@ file_name = 'TSPI_model_joblib.sav'
10
  model = joblib.load(file_name)
11
 
12
 
13
- def STPI(t_4_MaxValue,t_2_MaxValue,t_1_MaxValue,
14
  # Acc_0_5__1_0_MaxValue,
15
- Abs_Diff_t_4_MaxValue,Abs_Diff_t_2_MaxValue,Abs_Diff_t_1_MaxValue):
16
  print('------------------')
17
 
18
- X = [t_4_MaxValue,t_2_MaxValue,t_1_MaxValue,
19
  # Acc_0_5__1_0_MaxValue,
20
- Abs_Diff_t_4_MaxValue,Abs_Diff_t_2_MaxValue,Abs_Diff_t_1_MaxValue]
21
  print(X)
22
  outcome_decoded = ['Normal','','Suspect','Keratoconic']
23
  file_object = open('stpi_data.txt', 'a')
24
- file_object.write(str(t_4_MaxValue))
25
  file_object.write(';')
26
- file_object.write(str(t_2_MaxValue))
27
  file_object.write(';')
28
- file_object.write(str(t_1_MaxValue))
29
  file_object.write(';')
30
  # file_object.write(str(Acc_0_5__1_0_MaxValue))
31
  # file_object.write(';')
32
- file_object.write(str(Abs_Diff_t_4_MaxValue))
33
  file_object.write(';')
34
- file_object.write(str(Abs_Diff_t_2_MaxValue))
35
  file_object.write(';')
36
- file_object.write(str(Abs_Diff_t_1_MaxValue))
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()