-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanArray.py
More file actions
35 lines (29 loc) · 870 Bytes
/
cleanArray.py
File metadata and controls
35 lines (29 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def Label_Correction(x):
correct_Array=x
if (correct_Array[6]==1):
correct_Array[6]=0
correct_Array[7]=1
elif (correct_Array[6]==2):
correct_Array[6]=0
correct_Array[7]=0
correct_Array[8]=1
if(correct_Array[10]==2):
correct_Array[10]=0
correct_Array[11]=1
elif(correct_Array[10]==3):
correct_Array[10] = 0
correct_Array[11] = 0
correct_Array[12] = 1
if(correct_Array[14]==2):
correct_Array[14]=0
correct_Array[15]=1
if(correct_Array[17]==0):
correct_Array[17]=1
elif(correct_Array[17]==1):
correct_Array[17]=0
correct_Array[18]=1
elif(correct_Array[17]==2):
correct_Array[17] = 0
correct_Array[18] = 0
correct_Array[19] = 1
return correct_Array