Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA
INF
Commits
011ca2fc
Commit
011ca2fc
authored
Feb 04, 2020
by
Nicole Bussola
Browse files
manage custom splits
parent
55d7a92d
Changes
3
Hide whitespace changes
Inline
Side-by-side
postprocessing/borda_global_juxt_rSNF.py
View file @
011ca2fc
...
...
@@ -68,7 +68,7 @@ for k in range(2, N_LAYERS + 1):
_
,
var_names
,
_
=
load_data
(
os
.
path
.
join
(
DATAFOLDER
,
DATASET
,
TARGET
,
f
'0/
{
layers_concat
}
_tr.txt'
)
)
rankings
=
[]
for
i
in
range
(
N_SPLITS_END
-
N_SPLITS_START
):
for
i
in
range
(
N_SPLITS_START
,
N_SPLITS_END
-
N_SPLITS_START
):
if
MODE
==
'rSNF'
:
file_ranking
=
os
.
path
.
join
(
OUTFOLDER
,
DATASET
,
TARGET
,
MODEL
,
f
'
{
i
}
/
{
MODE
}
/
{
layers_concat
}
_tr_
{
MODEL
}
_rankList_ranking.csv.gz'
)
...
...
postprocessing/borda_global_rSNFi.py
View file @
011ca2fc
...
...
@@ -61,7 +61,7 @@ for k in range(2, N_LAYERS + 1):
all_feats
=
[]
for
i
in
range
(
N_SPLITS_END
-
N_SPLITS_START
):
for
i
in
range
(
N_SPLITS_START
,
N_SPLITS_END
-
N_SPLITS_START
):
file_featureList
=
os
.
path
.
join
(
OUTFOLDER
,
DATASET
,
TARGET
,
MODEL
,
f
'
{
i
}
/
{
MODE
}
/
{
layers_concat
}
_tr_
{
MODEL
}
_KBest_featurelist.txt'
)
feats
=
pd
.
read_csv
(
file_featureList
,
sep
=
'
\t
'
)
all_feats
.
extend
(
list
(
feats
.
FEATURE_NAME
))
...
...
@@ -76,7 +76,7 @@ for k in range(2, N_LAYERS + 1):
positions
[
i
]
=
x
.
tolist
()[
0
]
means
[
i
]
=
0.0
for
i
in
range
(
N_SPLITS_END
-
N_SPLITS_START
):
for
i
in
range
(
N_SPLITS_START
,
N_SPLITS_END
-
N_SPLITS_START
):
file_featureList
=
os
.
path
.
join
(
OUTFOLDER
,
DATASET
,
TARGET
,
MODEL
,
f
'
{
i
}
/
{
MODE
}
/
{
layers_concat
}
_tr_
{
MODEL
}
_KBest_featurelist.txt'
)
feats
=
pd
.
read_csv
(
file_featureList
,
sep
=
'
\t
'
)
...
...
postprocessing/compute_all_metrics.py
View file @
011ca2fc
...
...
@@ -100,7 +100,7 @@ for k in range_combinations:
all_test_mccs
=
[]
best_feat_steps
=
[]
for
split_id
in
range
(
N_SPLITS_END
-
N_SPLITS_START
):
for
split_id
in
range
(
N_SPLITS_START
,
N_SPLITS_END
-
N_SPLITS_START
):
PATH
=
f
'
{
OUTFOLDER
}
/
{
DATASET
}
/
{
TARGET
}
/
{
MODEL
}
/
{
split_id
}
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment