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
David Maxence
prj_deep
Commits
8592fa43
Commit
8592fa43
authored
May 18, 2021
by
Baffert Ambre
Browse files
ajout result exp1
parent
fc05de05
Changes
12
Show whitespace changes
Inline
Side-by-side
Exp
2_
Aug_urbanclass_fold
_v1
.py
→
Exp
1_No
Aug_urbanclass_fold.py
View file @
8592fa43
...
...
@@ -75,7 +75,7 @@ def train_test_split(fold_k, data, X_dim=(128, 128, 1)):
def
show_results
(
tot_history
):
"""Show accuracy and loss graphs for train and test sets."""
pngName
=
[
'result
augmented
/res1.png'
,
'result
augmented
/res2.png'
,
'result
augmented
/res3.png'
,
'result
augmented
/res4.png'
,
'result
augmented
/res5.png'
,
'result
augmented
/res6.png'
,
'result
augmented
/res7.png'
,
'result
augmented
/res8.png'
,
'result
augmented
/res9.png'
,
'result
augmented
/res10.png'
]
pngName
=
[
'
Exp1_
result/res1.png'
,
'
Exp1_
result/res2.png'
,
'
Exp1_
result/res3.png'
,
'
Exp1_
result/res4.png'
,
'
Exp1_
result/res5.png'
,
'
Exp1_
result/res6.png'
,
'
Exp1_
result/res7.png'
,
'
Exp1_
result/res8.png'
,
'
Exp1_
result/res9.png'
,
'
Exp1_
result/res10.png'
]
for
i
,
history
in
enumerate
(
tot_history
):
print
(
'
\n
({})'
.
format
(
i
+
1
))
fig
=
plt
.
figure
()
...
...
@@ -99,7 +99,7 @@ def show_results(tot_history):
plt
.
savefig
(
pngName
[
i
])
file
=
open
(
'result
augmented
/result.txt'
,
'a'
)
file
=
open
(
'
Exp1_
result/result.txt'
,
'a'
)
file
.
write
(
'
\n
=========FOLD%s=========
\n
'
%
(
i
+
1
))
file
.
write
(
'
\n
Max validation accuracy: %.4f %%'
%
(
np
.
max
(
history
.
history
[
'val_accuracy'
])
*
100
))
file
.
write
(
'
\n
Min validation loss: %.5f'
%
np
.
min
(
history
.
history
[
'val_loss'
]))
...
...
@@ -129,7 +129,7 @@ def process_fold(fold_k, data, epochs=100, num_batch_size=32):
if
__name__
==
"__main__"
:
us8k_df
=
pd
.
read_pickle
(
"
us8k_augmented
_df.pkl"
)
us8k_df
=
pd
.
read_pickle
(
"
./pkl/us8k
_df.pkl"
)
history1
=
[]
for
i
in
range
(
10
)
:
FOLD
=
i
+
1
...
...
result
_notAugmented
/res1.png
→
Exp1_
result/res1.png
View file @
8592fa43
File moved
result
_notAugmented
/res10.png
→
Exp1_
result/res10.png
View file @
8592fa43
File moved
result
_notAugmented
/res2.png
→
Exp1_
result/res2.png
View file @
8592fa43
File moved
result
_notAugmented
/res3.png
→
Exp1_
result/res3.png
View file @
8592fa43
File moved
result
_notAugmented
/res4.png
→
Exp1_
result/res4.png
View file @
8592fa43
File moved
result
_notAugmented
/res5.png
→
Exp1_
result/res5.png
View file @
8592fa43
File moved
result
_notAugmented
/res6.png
→
Exp1_
result/res6.png
View file @
8592fa43
File moved
result
_notAugmented
/res7.png
→
Exp1_
result/res7.png
View file @
8592fa43
File moved
result
_notAugmented
/res8.png
→
Exp1_
result/res8.png
View file @
8592fa43
File moved
result
_notAugmented
/res9.png
→
Exp1_
result/res9.png
View file @
8592fa43
File moved
result
_notAugmented
/result.txt
→
Exp1_
result/result.txt
View file @
8592fa43
File moved
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