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
Speaker
sidekit
Commits
d33f3c9b
Commit
d33f3c9b
authored
May 10, 2022
by
Colleen Beaumard
Browse files
Modification of scoring.py
parent
bdd20367
Changes
1
Hide whitespace changes
Inline
Side-by-side
egs/iemocap/local/scoring.py
View file @
d33f3c9b
...
...
@@ -187,6 +187,9 @@ for e, t, v in zip(aepoch, tloss, vloss):
### Plotting of confusion matrix and losses ###
if
model_type
==
"custom"
:
path
=
"model_{}/Sess{}_test/{}/{}emo_{}batch_lr-{}{}"
.
format
(
model_type
,
ses_nb
,
model_2nd
[
1
:]
,
cates
,
nb_batch
,
lr
,
freeze
)
if
not
os
.
path
.
isdir
(
path
.
rsplit
(
"/"
,
2
)[
0
]):
os
.
mkdir
(
path
.
rsplit
(
"/"
,
2
)[
0
])
else
:
path
=
"model_{}/Sess{}_test/{}emo_{}batch_lr-{}{}"
.
format
(
model_type
,
ses_nb
,
cates
,
nb_batch
,
lr
,
freeze
)
...
...
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