Commit a4dbd00f authored by Eva Lina Fesefeldt's avatar Eva Lina Fesefeldt
Browse files

L-BFGS

parent e76cadc5

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
# Creating figure
fig = plt.figure(figsize = (5, 4), constrained_layout = True)
ax = plt.axes(projection ="3d")
alpha = 1
mpl.rcParams.update({'font.size': 8})
for size_hidden_layer in range(1,30,5):
number_of_parameters = 9*size_hidden_layer + size_hidden_layer + 3 * size_hidden_layer + 3
filename = "results/hesse_eigenwerte_n" + str(size_hidden_layer) + ".npy"
z = np.load(filename)
y = np.linspace(0,1,number_of_parameters)
z = np.log(np.abs(z))
x = np.zeros_like(z) + size_hidden_layer
alpha = 0.85*alpha
color = (0, 0, 1, alpha)
ax.scatter3D(x, y, z, color = color, marker='.')
# Labels
ax.set_xlabel('n')
ax.set_ylabel('relativer Eigenwertindex')
ax.set_zlabel('Betrag des Eigenwertes')
for t in ax.zaxis.get_major_ticks(): t.label.set_fontsize(7)
#ax.set_zscale('log')
plt.show()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment