Commit 25e0b710 by DLA-Ranker

Updates

parent 559f9d48
Comp;ch1;ch2;Conf;Class
1AK4;A;B;1AK4_cm-it0_8585;0
1AK4;A;B;1AK4_cm-it0_9733;0
2I25;A;B;2I25_ti5-it1_46;1
Comp;ch1;ch2;Conf;Class
1AK4;A;B;1AK4_cm-it0_9989;0
1AK4;A;B;1AK4_cm-it1_6;0
1AK4;A;B;1AK4_cm-itw_102w;0
1AK4;A;B;1AK4_ti5-it1_11;1
1AK4;A;B;1AK4_ti5-it1_148;1
1AK4;A;B;1AK4_ti-it1_151;1
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -40,7 +40,7 @@ logging.Logger
sys.path.insert(1, '../lib/')
import tools as tl
confom_dict = pd.read_csv('../Examples/conformations_list', sep=';')
confom_dict = pd.read_csv('../Examples/conformations_list.txt', sep=';')
comp_dir = '../Examples/conformations_directory'
target_comp = listdir(comp_dir)
......
......@@ -97,21 +97,15 @@ mkdir(intermediate_dir)
model = load_model(path.join('../Examples', 'MODELS', 'Dockground', '0_model'))
#Must be update!
def load_map(train_path):
"""
def load_map(sample_path):
check_call(
[
'lz4_win64_v1_9_3\lz4.exe', '-d', '-f',
train_path
'lz4', '-d', '-f',
sample_path
],
stdout=sys.stdout)
"""
print(train_path)
#X_train, y_train, reg_type, _,_,_ = load_obj(train_path.replace('.pkl.lz4',''))
X_train, y_train, reg_type, res_pos,_,_ = load_obj(train_path.replace('.pkl',''))
#remove(train_path.replace('.lz4',''))
X_train, y_train, reg_type, res_pos,_,_ = load_obj(sample_path.replace('.pkl.lz4',''))
remove(sample_path.replace('.lz4',''))
return X_train, y_train, reg_type, res_pos
batch_samples_test_1 = []
......
......@@ -86,36 +86,15 @@ model = load_model(path.join('../Examples', 'MODELS', 'BM5', '0_model'))
predictions_file = open('../Examples/predictions_SCR', 'w')
#Must be update!
def load_map(train_path):
"""
def load_map(sample_path):
check_call(
[
'lz4_win64_v1_9_3\lz4.exe', '-d', '-f',
train_path
'lz4', '-d', '-f',
sample_path
],
stdout=sys.stdout)
"""
print(train_path)
#X_train, y_train, reg_type, _,_,_ = load_obj(train_path.replace('.pkl.lz4',''))
X_train, y_train, reg_type, res_pos,_,info = load_obj(train_path.replace('.pkl',''))
#X_train = X_train[:,:,:,:,:167]
"""
X_train_tmp = []
reg_type_tmp = []
y_train_tmp = []
for i in range(min(len(X_train),len(reg_type))):
if reg_type[i] == 'C' or reg_type[i] == 'R':
X_train_tmp.append(X_train[i])
reg_type_tmp.append(reg_type[i])
y_train_tmp.append(y_train[i])
reg_type = reg_type_tmp
X_train = np.array(X_train_tmp)
y_train = y_train_tmp
"""
#remove(train_path.replace('.lz4',''))
X_train, y_train, reg_type, res_pos,_,info = load_obj(sample_path.replace('.pkl.lz4',''))
remove(sample_path.replace('.lz4',''))
return X_train, y_train, reg_type, res_pos, info
fold = 'test'
......
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment