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
Andrei-Claudiu Roibu
BrainMapper
Commits
b3a42e70
Commit
b3a42e70
authored
Apr 15, 2020
by
Andrei-Claudiu Roibu
🖥
Browse files
updated labels calls in constructor and dice score plotter
parent
f2f233ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/data_logging_utils.py
View file @
b3a42e70
...
...
@@ -74,7 +74,7 @@ class LogWriter():
if
labels
is
not
None
:
self
.
labels
=
self
.
labels_generator
(
labels
)
else
:
pass
self
.
labels
=
[
'rsfMRI'
]
self
.
logger
=
logging
.
getLogger
()
file_handler
=
logging
.
FileHandler
(
...
...
@@ -194,8 +194,12 @@ class LogWriter():
ax
.
xaxis
.
set_label_position
(
'top'
)
ax
.
bar
(
np
.
arange
(
self
.
number_of_classes
),
dice_score
)
ax
.
set_xticks
(
np
.
arange
(
self
.
number_of_classes
))
ax
.
set_xticklabels
(
self
.
labels
)
ax
.
xaxis
.
tick_bottom
()
if
self
.
labels
is
None
:
pass
else
:
ax
.
set_xticklabels
(
self
.
labels
)
ax
.
xaxis
.
tick_bottom
()
if
epochs
:
self
.
log_writer
[
phase
].
add_figure
(
...
...
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