Skip to content

Commit 53f4739

Browse files
committed
Update Pilot1 to use candle_lib
1 parent 0eb88c6 commit 53f4739

File tree

15 files changed

+3
-55
lines changed

15 files changed

+3
-55
lines changed

Pilot1/Attn/attn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import numpy as np
99

1010
file_path = os.path.dirname(os.path.realpath(__file__))
11-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
12-
sys.path.append(lib_path2)
1311

1412
import candle
1513

Pilot1/Combo/NCI60.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import collections
44
import os
5-
import sys
65

76
import numpy as np
87
import pandas as pd
@@ -14,8 +13,6 @@
1413
from sklearn.preprocessing import StandardScaler, MinMaxScaler, MaxAbsScaler
1514

1615
file_path = os.path.dirname(os.path.realpath(__file__))
17-
lib_path = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
18-
sys.path.append(lib_path)
1916

2017
import candle
2118

Pilot1/Combo/combo.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
from __future__ import print_function
22

33
import os
4-
import sys
54
import logging
65

76
file_path = os.path.dirname(os.path.realpath(__file__))
8-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
9-
sys.path.append(lib_path2)
107

118
import candle
129

Pilot1/NT3/nt3.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import os
2-
import sys
32

43
file_path = os.path.dirname(os.path.realpath(__file__))
5-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
6-
sys.path.append(lib_path2)
74

85
import candle
96

Pilot1/NT3/nt3_baseline_keras2_tensorrt.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pandas as pd
33
import numpy as np
44
import os
5-
import sys
65

76
from tensorflow.keras import backend as K
87
from tensorflow.keras.layers import Dense, Dropout, Activation, Conv1D, MaxPooling1D, Flatten, LocallyConnected1D
@@ -14,10 +13,6 @@
1413

1514
TIMEOUT = 3600 # in sec; set this to -1 for no timeout
1615
file_path = os.path.dirname(os.path.realpath(__file__))
17-
lib_path = os.path.abspath(os.path.join(file_path, '..', 'common'))
18-
sys.path.append(lib_path)
19-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
20-
sys.path.append(lib_path2)
2116

2217
import nt3 as bmk
2318
import candle

Pilot1/P1B1/p1b1.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import print_function
22

33
import os
4-
import sys
54
import logging
65

76
import pandas as pd
@@ -11,8 +10,6 @@
1110
from scipy.stats.stats import pearsonr
1211

1312
file_path = os.path.dirname(os.path.realpath(__file__))
14-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
15-
sys.path.append(lib_path2)
1613

1714
import candle
1815

Pilot1/P1B2/p1b2.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55
from sklearn.metrics import accuracy_score
66

77
import os
8-
import sys
98
import logging
109

1110
file_path = os.path.dirname(os.path.realpath(__file__))
12-
lib_path = os.path.abspath(os.path.join(file_path, '..', 'common'))
13-
sys.path.append(lib_path)
14-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
15-
sys.path.append(lib_path2)
1611

1712
import candle
1813

Pilot1/P1B3/p1b3.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
from sklearn.preprocessing import StandardScaler, MinMaxScaler, MaxAbsScaler
1919

2020
file_path = os.path.dirname(os.path.realpath(__file__))
21-
lib_path = os.path.abspath(os.path.join(file_path, '..'))
22-
sys.path.append(lib_path)
23-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
24-
sys.path.append(lib_path2)
2521

2622
import candle
2723

Pilot1/T29/infer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pandas as pd
22
import numpy as np
33
import os
4-
import sys
54
from tensorflow import keras as ke
65
from tensorflow.keras.models import model_from_json
76
from tensorflow.keras.utils import to_categorical
@@ -10,8 +9,6 @@
109
file_path = os.path.dirname(os.path.realpath(__file__))
1110

1211
# candle
13-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
14-
sys.path.append(lib_path2)
1512
import candle
1613

1714

Pilot1/T29/t29res.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pandas as pd
22
import numpy as np
33
import os
4-
import sys
54
import matplotlib
65
matplotlib.use('Agg')
76
import matplotlib.pyplot as plt
@@ -18,8 +17,7 @@
1817

1918
# candle
2019
file_path = os.path.dirname(os.path.realpath(__file__))
21-
lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common'))
22-
sys.path.append(lib_path2)
20+
2321
import candle
2422

2523

0 commit comments

Comments
 (0)