Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sjromuel
Masterarbeit
Commits
4ba8fda9
Commit
4ba8fda9
authored
Nov 23, 2020
by
sjromuel
Browse files
d
parent
94d6b5d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
RobinNet/13unet_mrt_threshgt.py
View file @
4ba8fda9
...
...
@@ -177,15 +177,15 @@ def main():
#number_patients = number_patients * 5
img_path
=
"data/npy_thresh/"
#
specificmodels = [
6
]
specificmodels
=
[
0
]
if
cross_val
:
log
=
open
(
"logs"
+
modelname
+
".txt"
,
"w+"
)
log
.
write
(
modelname
+
"
\r
"
)
log
.
write
(
"Start Cross Validation Training
\r
"
)
log
.
close
()
print
(
"Start Cross Validation Training"
)
#
for validation_round in specificmodels:
for
validation_round
in
range
(
number_patients
//
2
):
for
validation_round
in
specificmodels
:
#
for validation_round in range(number_patients//2):
log
=
open
(
"logs"
+
modelname
+
".txt"
,
"a+"
)
test_patients
=
(
2
*
validation_round
+
1
,
2
*
validation_round
+
2
)
vallist
=
list
(
range
(
1
,
number_patients
+
1
))
+
list
(
range
(
1
,
number_patients
+
1
))
...
...
Write
Preview
Supports
Markdown
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