Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Eva Lina Fesefeldt
Masterarbeit
Commits
fbd35d46
Commit
fbd35d46
authored
Jun 17, 2021
by
Eva Lina Fesefeldt
Browse files
neuer Plot Vergleich_Optimizer
parent
e3e50e36
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
TicTacToe/Vergleich_Optimizer/figures/kondition_hesse_vs_n.pdf
...cToe/Vergleich_Optimizer/figures/kondition_hesse_vs_n.pdf
+0
-0
TicTacToe/Vergleich_Optimizer/figures/loss_vs_n.pdf
TicTacToe/Vergleich_Optimizer/figures/loss_vs_n.pdf
+0
-0
TicTacToe/Vergleich_Optimizer/plot.py
TicTacToe/Vergleich_Optimizer/plot.py
+4
-4
No files found.
TicTacToe/Vergleich_Optimizer/figures/kondition_hesse_vs_n.pdf
View file @
fbd35d46
No preview for this file type
TicTacToe/Vergleich_Optimizer/figures/loss_vs_n.pdf
View file @
fbd35d46
No preview for this file type
TicTacToe/Vergleich_Optimizer/plot.py
View file @
fbd35d46
...
@@ -7,14 +7,14 @@ condition_adam_32 = np.load("results/condition_2norm_adam_batch32.npy")
...
@@ -7,14 +7,14 @@ condition_adam_32 = np.load("results/condition_2norm_adam_batch32.npy")
loss_adam_32
=
np
.
load
(
"results/MSE_loss_adam_batch32.npy"
)
loss_adam_32
=
np
.
load
(
"results/MSE_loss_adam_batch32.npy"
)
condition_sgd_32
=
np
.
load
(
"results/condition_2norm_sgd_batch32.npy"
)
condition_sgd_32
=
np
.
load
(
"results/condition_2norm_sgd_batch32.npy"
)
loss_sgd_32
=
np
.
load
(
"results/MSE_loss_sgd_batch32.npy"
)
loss_sgd_32
=
np
.
load
(
"results/MSE_loss_sgd_batch32.npy"
)
condition_sgd_10
=
np
.
load
(
"results/condition_2norm_sgd_batch10.npy"
)
#
condition_sgd_10 = np.load("results/condition_2norm_sgd_batch10.npy")
loss_sgd_10
=
np
.
load
(
"results/MSE_loss_sgd_batch10.npy"
)
#
loss_sgd_10 = np.load("results/MSE_loss_sgd_batch10.npy")
# Konditions-Plot
# Konditions-Plot
fig
=
plt
.
figure
(
figsize
=
(
10
,
7
))
fig
=
plt
.
figure
(
figsize
=
(
10
,
7
))
plt
.
semilogy
(
condition_adam_32
,
label
=
"Adam Batch=32"
)
plt
.
semilogy
(
condition_adam_32
,
label
=
"Adam Batch=32"
)
plt
.
semilogy
(
condition_sgd_32
,
label
=
"SGD Batch=32"
)
plt
.
semilogy
(
condition_sgd_32
,
label
=
"SGD Batch=32"
)
plt
.
semilogy
(
condition_sgd_10
,
label
=
"SGD Batch=10"
)
#
plt.semilogy(condition_sgd_10, label="SGD Batch=10")
plt
.
legend
()
plt
.
legend
()
plt
.
xlabel
(
"n"
)
plt
.
xlabel
(
"n"
)
plt
.
ylabel
(
"Kondition der Hesse-Matrix"
)
plt
.
ylabel
(
"Kondition der Hesse-Matrix"
)
...
@@ -24,7 +24,7 @@ plt.show()
...
@@ -24,7 +24,7 @@ plt.show()
fig
=
plt
.
figure
(
figsize
=
(
10
,
7
))
fig
=
plt
.
figure
(
figsize
=
(
10
,
7
))
plt
.
semilogy
(
loss_adam_32
,
label
=
"Adam Batch=32"
)
plt
.
semilogy
(
loss_adam_32
,
label
=
"Adam Batch=32"
)
plt
.
semilogy
(
loss_sgd_32
,
label
=
"SGD Batch=32"
)
plt
.
semilogy
(
loss_sgd_32
,
label
=
"SGD Batch=32"
)
plt
.
semilogy
(
loss_sgd_10
,
label
=
"SGD Batch=10"
)
#
plt.semilogy(loss_sgd_10, label="SGD Batch=10")
plt
.
legend
()
plt
.
legend
()
plt
.
xlabel
(
"n"
)
plt
.
xlabel
(
"n"
)
plt
.
ylabel
(
"Loss nach 10.000 Epochen"
)
plt
.
ylabel
(
"Loss nach 10.000 Epochen"
)
...
...
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