Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bannier Delphine
Projet_FR
Commits
9b42092b
Commit
9b42092b
authored
May 13, 2021
by
Bannier Delphine
Browse files
add nb + plot history model
parent
0fc9273d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
clean_notebooks/CNN_collage_1Chann.ipynb
View file @
9b42092b
This diff is collapsed.
Click to expand it.
clean_notebooks/CNN_injection_collage_1Chann.ipynb
View file @
9b42092b
This diff is collapsed.
Click to expand it.
clean_notebooks/CNN_injection_superposition_4Chann.ipynb
0 → 100644
View file @
9b42092b
This diff is collapsed.
Click to expand it.
clean_notebooks/CNN_superposition_4chann.ipynb
View file @
9b42092b
This diff is collapsed.
Click to expand it.
postprocessing/plot_history.py
0 → 100644
View file @
9b42092b
import
matplotlib.pyplot
as
plt
def
plot_history
(
hist
):
'''
`hist`: returned by model.fit()
'''
liste
=
list
(
hist
.
history
.
keys
())
metrics
=
[
i
for
i
in
liste
if
'val'
not
in
i
]
for
metric
in
metrics
:
plt
.
plot
(
hist
.
history
[
f
'
{
metric
}
'
])
plt
.
plot
(
hist
.
history
[
f
'val_
{
metric
}
'
])
plt
.
title
(
f
'model
{
metric
}
'
)
plt
.
ylabel
(
f
'
{
metric
}
'
)
plt
.
xlabel
(
'epoch'
)
plt
.
legend
([
'train'
,
'test'
],
loc
=
'upper left'
)
plt
.
show
()
\ No newline at end of file
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