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
8d91e54b
Commit
8d91e54b
authored
Feb 28, 2020
by
Marco Chierici
Browse files
Addressed FSTEPS for cases with <=10 input features
parent
66488ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
sklearn_training.py
View file @
8d91e54b
...
...
@@ -179,6 +179,9 @@ for percentage in feature_ranges:
k
=
np
.
ceil
((
nfeat
*
percentage
)
/
100
).
astype
(
np
.
int
)
FSTEPS
.
append
(
k
)
# address cases with <=10 features yielding duplicated entries
FSTEPS
=
np
.
unique
(
np
.
array
(
FSTEPS
)).
tolist
()
# prepare output files
stabilityf
=
open
(
OUTFILE
+
"_stability.txt"
,
'w'
)
stability_w
=
csv
.
writer
(
stabilityf
,
delimiter
=
'
\t
'
,
lineterminator
=
'
\n
'
)
...
...
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