Commit 66488ce3 authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

Fix results filenames according to new rSNFi method

parent 47c7a72d
......@@ -71,7 +71,7 @@ for k in range(2, N_LAYERS + 1):
DATASET,
TARGET,
MODEL,
f'{i}/{MODE}/{layers_concat}_tr_{MODEL}_KBest_featurelist.txt',
f'{i}/{MODE}/{layers_concat}_ts_{MODEL}_KBest_featurelist.txt',
)
feats = pd.read_csv(file_featureList, sep='\t')
all_feats.extend(list(feats.FEATURE_NAME))
......@@ -95,7 +95,7 @@ for k in range(2, N_LAYERS + 1):
DATASET,
TARGET,
MODEL,
f'{split_id}/{MODE}/{layers_concat}_tr_{MODEL}_KBest_featurelist.txt',
f'{split_id}/{MODE}/{layers_concat}_ts_{MODEL}_KBest_featurelist.txt',
)
feats = pd.read_csv(file_featureList, sep='\t')
......@@ -109,7 +109,7 @@ for k in range(2, N_LAYERS + 1):
DATASET,
TARGET,
MODEL,
f'{split_id}/{MODE}/{layers_concat}_tr_{MODEL}_KBest_ranking.csv.gz',
f'{split_id}/{MODE}/{layers_concat}_ts_{MODEL}_KBest_ranking.csv.gz',
)
rankings = pd.read_csv(file_ranking, header=None, sep='\t')
for j in range(CV_K * CV_N):
......
......@@ -112,6 +112,13 @@ for k in range_combinations:
PATH, f'{MODE}/{layers_concat}_tr_{MODEL}_rankList_allmetrics.txt'
)
elif MODE == 'rSNFi':
file_log = os.path.join(
PATH, f'{MODE}/{layers_concat}_ts_{MODEL}_KBest.log'
)
file_metrics = os.path.join(
PATH, f'{MODE}/{layers_concat}_ts_{MODEL}_KBest_allmetrics.txt'
)
else:
file_log = os.path.join(
PATH, f'{MODE}/{layers_concat}_tr_{MODEL}_KBest.log'
......
Supports Markdown
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